]> git.karo-electronics.de Git - linux-beck.git/commit
staging:iio:ad7793: Implement stricter id checking
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 21 Nov 2012 16:27:00 +0000 (16:27 +0000)
committerJonathan Cameron <jic23@kernel.org>
Fri, 30 Nov 2012 12:57:08 +0000 (12:57 +0000)
commite786cc26dcc52caba53d17a80888ed0b46d097f8
tree1783f4e8d47eda541a68caaf8b6bbd3f97253dc7
parent891c8bcec1e12ed0f2830c52e863d2723e9dbd4e
staging:iio:ad7793: Implement stricter id checking

Instead of checking whether the id of the current device matches the id of any
device supported by the driver, check whether it matches the id of the device
which the driver was instantiated for. This makes sure that the driver is not
accidentally instantiated for the wrong device.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7793.c