From: Olliver Schinagl Date: Wed, 21 Jan 2015 21:33:45 +0000 (+0100) Subject: gpio: use sizeof() instead of hardcoded values X-Git-Tag: fixes-v4.0-rc1~140^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e089246a53cce0e14f04fb24de0e1bc62ec5400;p=pandora-kernel.git gpio: use sizeof() instead of hardcoded values gpiolib uses a fixed string for the suffixes and defines it at 32 bytes. Later in the code snprintf is used with this fixed value of 32. Using sizeof() is safer in case the size for the suffixes is ever changed. Signed-off-by: Olliver Schinagl Signed-off-by: Linus Walleij --- Reading git-diff-tree failed