From: Bryan Freed Date: Tue, 21 Jun 2011 22:54:56 +0000 (-0700) Subject: iio: light sensor: Fix a panic in the tsl2563 driver. X-Git-Tag: v3.1-rc1~232^2~433 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f518d71f392b597832653f9438332ae27019da1;p=pandora-kernel.git iio: light sensor: Fix a panic in the tsl2563 driver. Add a wrapper for this driver around the IIO_CHAN() wrapper to make channel parameters more readable. This fixes a panic caused by the info_masks being accidentally passed in as channel2 parameters which easily surpass the size of the iio_modifier_names_light array. Signed-off-by: Bryan Freed Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed