Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: imu: st_lsm6dsx: fix naming of 'struct iio_info' in st_lsm6dsx_shub.c.

We need the name 'st_lsm6dsx_ext_info' for the actual 'iio_chan_spec_ext_info'.
Rename the 'st_lsm6dsx_ext_info' in st_lsm6dsx_shub.c to 'st_lsm6dsx_shub_info'.
For consistency, replace also 'ext' by 'shub' in 'st_lsm6dsx_ext_attributes'
and 'st_lsm6dsx_ext_attribute_group'.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/1673874434-30750-2-git-send-email-Philippe.DeMuyter@macq.eu
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Philippe De Muyter and committed by
Jonathan Cameron
677a33b5 54667612

+6 -6
+6 -6
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c
··· 704 704 static IIO_DEV_ATTR_SAMP_FREQ_AVAIL(st_lsm6dsx_shub_sampling_freq_avail); 705 705 static IIO_DEVICE_ATTR(in_scale_available, 0444, 706 706 st_lsm6dsx_shub_scale_avail, NULL, 0); 707 - static struct attribute *st_lsm6dsx_ext_attributes[] = { 707 + static struct attribute *st_lsm6dsx_shub_attributes[] = { 708 708 &iio_dev_attr_sampling_frequency_available.dev_attr.attr, 709 709 &iio_dev_attr_in_scale_available.dev_attr.attr, 710 710 NULL, 711 711 }; 712 712 713 - static const struct attribute_group st_lsm6dsx_ext_attribute_group = { 714 - .attrs = st_lsm6dsx_ext_attributes, 713 + static const struct attribute_group st_lsm6dsx_shub_attribute_group = { 714 + .attrs = st_lsm6dsx_shub_attributes, 715 715 }; 716 716 717 - static const struct iio_info st_lsm6dsx_ext_info = { 718 - .attrs = &st_lsm6dsx_ext_attribute_group, 717 + static const struct iio_info st_lsm6dsx_shub_info = { 718 + .attrs = &st_lsm6dsx_shub_attribute_group, 719 719 .read_raw = st_lsm6dsx_shub_read_raw, 720 720 .write_raw = st_lsm6dsx_shub_write_raw, 721 721 .hwfifo_set_watermark = st_lsm6dsx_set_watermark, ··· 737 737 return NULL; 738 738 739 739 iio_dev->modes = INDIO_DIRECT_MODE; 740 - iio_dev->info = &st_lsm6dsx_ext_info; 740 + iio_dev->info = &st_lsm6dsx_shub_info; 741 741 742 742 sensor = iio_priv(iio_dev); 743 743 sensor->id = id;