summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-05-25 09:40:27 +0200
committerJonathan Cameron <jic23@kernel.org>2016-05-29 19:51:29 +0100
commit0dd09ca419d712d315ffd864158f515e6c64261a (patch)
treee157697b9b3b8c08b293cfdec6236fd3fe0b3a7c /drivers/iio/magnetometer
parent13c27e946ddc0e19f3d8b307b14cd8053fcb4844 (diff)
downloadblackbird-op-linux-0dd09ca419d712d315ffd864158f515e6c64261a.tar.gz
blackbird-op-linux-0dd09ca419d712d315ffd864158f515e6c64261a.zip
iio: light: bh1780: assign a static name
Using the struct i2c_device->id field for naming the light sensor is a bad idea: when booting from the pure device tree this is NULL and that causes the device not to have the "name" property in sysfs and that in turn confuses the "lsiio" command to stop listing devices. So instead of using the device .id, use the hard string "bh1780", which works just fine. Fixes: 1f0477f18306 ("iio: light: new driver for the ROHM BH1780") Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud