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/magnetometer | |
parent | e3c5be2bdae553ddefacc636496f2df21aee31ee (diff) | |
download | linux-stable-4f544ced19b3d300ac11414b68a676a2c42f6d06.tar.gz linux-stable-4f544ced19b3d300ac11414b68a676a2c42f6d06.tar.bz2 linux-stable-4f544ced19b3d300ac11414b68a676a2c42f6d06.zip |
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/magnetometer')
-rw-r--r-- | drivers/iio/magnetometer/st_magn_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index 52bbcfa1e077..8e33a7682d33 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -387,6 +387,9 @@ int st_magn_common_probe(struct iio_dev *indio_dev, if (err) goto st_magn_device_register_error; + dev_info(&indio_dev->dev, "registered magnetometer %s\n", + indio_dev->name); + return 0; st_magn_device_register_error: |