From: Benoit Cousson Date: Mon, 5 Dec 2011 14:23:54 +0000 (+0100) Subject: of/base: Take NULL string into account for property with multiple strings X-Git-Tag: v3.3-rc1~63^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88af7f58c6f1fa28d617392c791f11317bcb590d;p=pandora-kernel.git of/base: Take NULL string into account for property with multiple strings The current implementation just ignore any NULL string inserted in a multiple strings property. In some cases we can have a property with a fix number of strings but not necessarily used, like for example in a list of valid pinmux modes. prop = "uart_rx", "uart_tx", "", "", "safe_mode"; Do no skip NULL string and take them into account in of_property_read_string_index and of_property_count_strings. Reported-by: Tony Lindgren Signed-off-by: Benoit Cousson Cc: Grant Likely Signed-off-by: Rob Herring --- Reading git-diff-tree failed