diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-04-13 23:08:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-04-26 14:50:59 +0400 |
commit | 4f544ced19b3d300ac11414b68a676a2c42f6d06 (patch) | |
tree | 24c6de12fce1c4399f501ded5a4d6412eaf6fcb6 /drivers/iio/gyro | |
parent | e3c5be2bdae553ddefacc636496f2df21aee31ee (diff) | |
download | linux-4f544ced19b3d300ac11414b68a676a2c42f6d06.tar.xz |
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/gyro')
-rw-r--r-- | drivers/iio/gyro/st_gyro_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/gyro/st_gyro_core.c b/drivers/iio/gyro/st_gyro_core.c index a8e174a47bc4..bc71f4d1e2ce 100644 --- a/drivers/iio/gyro/st_gyro_core.c +++ b/drivers/iio/gyro/st_gyro_core.c @@ -344,6 +344,9 @@ int st_gyro_common_probe(struct iio_dev *indio_dev, if (err) goto st_gyro_device_register_error; + dev_info(&indio_dev->dev, "registered gyroscope %s\n", + indio_dev->name); + return 0; st_gyro_device_register_error: |