diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-04-13 20:08:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-04-26 11:50:59 +0100 |
commit | 4f544ced19b3d300ac11414b68a676a2c42f6d06 (patch) | |
tree | 24c6de12fce1c4399f501ded5a4d6412eaf6fcb6 /drivers/iio/accel/st_accel_core.c | |
parent | e3c5be2bdae553ddefacc636496f2df21aee31ee (diff) | |
download | op-kernel-dev-4f544ced19b3d300ac11414b68a676a2c42f6d06.zip op-kernel-dev-4f544ced19b3d300ac11414b68a676a2c42f6d06.tar.gz |
iio: st_sensors: announce registered sensors
It is pretty helpful to know already from dmesg that a certain
device is successfully registered, instead of having to browse
sysfs to see if it's actually there.
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Denis CIOCCA <denis.ciocca@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/st_accel_core.c')
-rw-r--r-- | drivers/iio/accel/st_accel_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c index 38caedc..4e06fcf 100644 --- a/drivers/iio/accel/st_accel_core.c +++ b/drivers/iio/accel/st_accel_core.c @@ -496,6 +496,9 @@ int st_accel_common_probe(struct iio_dev *indio_dev, if (err) goto st_accel_device_register_error; + dev_info(&indio_dev->dev, "registered accelerometer %s\n", + indio_dev->name); + return 0; st_accel_device_register_error: |