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

iio: Remove unused declarations

Commit 0f3a8c3f34f7 ("iio: Add support for creating IIO devices via configfs")
declared but never implemented iio_sw_device_type_configfs_{un}register().
Commit b662f809d410 ("iio: core: Introduce IIO software triggers") declared but
never implemented iio_sw_trigger_type_configfs_{un}register().
Commit a3e0b51884ee ("iio: accel: add support for FXLS8962AF/FXLS8964AF accelerometers")
declared but never implemented fxls8962af_core_remove().
Commit 8dedcc3eee3a ("iio: core: centralize ioctl() calls to the main chardev")
declared but never implemented iio_device_ioctl().

Commit d430f3c36ca6 ("iio: imu: inv_mpu6050: Use regmap instead of i2c specific functions")
removed inv_mpu6050_write_reg() but not its declaration.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20230811095701.35372-1-yuehaibing@huawei.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Yue Haibing and committed by
Jonathan Cameron
4eaf9286 fc1d297b

-11
-1
drivers/iio/accel/fxls8962af.h
··· 14 14 }; 15 15 16 16 int fxls8962af_core_probe(struct device *dev, struct regmap *regmap, int irq); 17 - int fxls8962af_core_remove(struct device *dev); 18 17 19 18 extern const struct dev_pm_ops fxls8962af_pm_ops; 20 19 extern const struct regmap_config fxls8962af_i2c_regmap_conf;
-3
drivers/iio/iio_core.h
··· 30 30 unsigned int cmd, unsigned long arg); 31 31 }; 32 32 33 - long iio_device_ioctl(struct iio_dev *indio_dev, struct file *filp, 34 - unsigned int cmd, unsigned long arg); 35 - 36 33 void iio_device_ioctl_handler_register(struct iio_dev *indio_dev, 37 34 struct iio_ioctl_handler *h); 38 35 void iio_device_ioctl_handler_unregister(struct iio_ioctl_handler *h);
-1
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h
··· 464 464 int inv_mpu6050_prepare_fifo(struct inv_mpu6050_state *st, bool enable); 465 465 int inv_mpu6050_switch_engine(struct inv_mpu6050_state *st, bool en, 466 466 unsigned int mask); 467 - int inv_mpu6050_write_reg(struct inv_mpu6050_state *st, int reg, u8 val); 468 467 int inv_mpu_acpi_create_mux_client(struct i2c_client *client); 469 468 void inv_mpu_acpi_delete_mux_client(struct i2c_client *client); 470 469 int inv_mpu_core_probe(struct regmap *regmap, int irq, const char *name,
-3
include/linux/iio/sw_device.h
··· 51 51 struct iio_sw_device *iio_sw_device_create(const char *, const char *); 52 52 void iio_sw_device_destroy(struct iio_sw_device *); 53 53 54 - int iio_sw_device_type_configfs_register(struct iio_sw_device_type *dt); 55 - void iio_sw_device_type_configfs_unregister(struct iio_sw_device_type *dt); 56 - 57 54 static inline 58 55 void iio_swd_group_init_type_name(struct iio_sw_device *d, 59 56 const char *name,
-3
include/linux/iio/sw_trigger.h
··· 51 51 struct iio_sw_trigger *iio_sw_trigger_create(const char *, const char *); 52 52 void iio_sw_trigger_destroy(struct iio_sw_trigger *); 53 53 54 - int iio_sw_trigger_type_configfs_register(struct iio_sw_trigger_type *tt); 55 - void iio_sw_trigger_type_configfs_unregister(struct iio_sw_trigger_type *tt); 56 - 57 54 static inline 58 55 void iio_swt_group_init_type_name(struct iio_sw_trigger *t, 59 56 const char *name,