iio: adc: ad7606: use kernel identifier name style
authorDavid Lechner <dlechner@baylibre.com>
Tue, 18 Mar 2025 22:52:14 +0000 (17:52 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:54 +0000 (19:09 +0100)
Use lower_snake_case for the identifier names as that is the usual
kernel code style.

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250318-iio-adc-ad7606-improvements-v2-6-4b605427774c@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.h
drivers/iio/adc/ad7606_spi.c

index dd4ae59dc59ab17e437171caf6d8a5abcce97f74..5ee04e8f4041c75d66b899a9371a75b5d0f31071 100644 (file)
@@ -254,7 +254,7 @@ struct ad7606_bus_ops {
                                unsigned int addr,
                                unsigned int val);
        int (*update_scan_mode)(struct iio_dev *indio_dev, const unsigned long *scan_mask);
-       u16 (*rd_wr_cmd)(int addr, char isWriteOp);
+       u16 (*rd_wr_cmd)(int addr, char is_write_op);
 };
 
 /**
index c028e08efe2c82cd97249f98eec50a9a9c06471f..1abaf8626206cb30e532cf9f82e0d050706aa1e0 100644 (file)
@@ -59,16 +59,16 @@ static const struct iio_chan_spec ad7606c_18_sw_channels[] = {
        AD7606_SW_CHANNEL(7, 18),
 };
 
-static u16 ad7616_spi_rd_wr_cmd(int addr, char isWriteOp)
+static u16 ad7616_spi_rd_wr_cmd(int addr, char is_write_op)
 {
        /*
         * The address of register consist of one w/r bit
         * 6 bits of address followed by one reserved bit.
         */
-       return ((addr & 0x7F) << 1) | ((isWriteOp & 0x1) << 7);
+       return ((addr & 0x7F) << 1) | ((is_write_op & 0x1) << 7);
 }
 
-static u16 ad7606B_spi_rd_wr_cmd(int addr, char is_write_op)
+static u16 ad7606b_spi_rd_wr_cmd(int addr, char is_write_op)
 {
        /*
         * The address of register consists of one bit which
@@ -171,7 +171,7 @@ static int ad7616_sw_mode_config(struct iio_dev *indio_dev)
        return 0;
 }
 
-static int ad7606B_sw_mode_config(struct iio_dev *indio_dev)
+static int ad7606b_sw_mode_config(struct iio_dev *indio_dev)
 {
        struct ad7606_state *st = iio_priv(indio_dev);
        int ret;
@@ -195,7 +195,7 @@ static int ad7606c_18_sw_mode_config(struct iio_dev *indio_dev)
 {
        int ret;
 
-       ret = ad7606B_sw_mode_config(indio_dev);
+       ret = ad7606b_sw_mode_config(indio_dev);
        if (ret)
                return ret;
 
@@ -228,15 +228,15 @@ static const struct ad7606_bus_ops ad7606b_spi_bops = {
        .read_block = ad7606_spi_read_block,
        .reg_read = ad7606_spi_reg_read,
        .reg_write = ad7606_spi_reg_write,
-       .rd_wr_cmd = ad7606B_spi_rd_wr_cmd,
-       .sw_mode_config = ad7606B_sw_mode_config,
+       .rd_wr_cmd = ad7606b_spi_rd_wr_cmd,
+       .sw_mode_config = ad7606b_sw_mode_config,
 };
 
 static const struct ad7606_bus_ops ad7606c_18_spi_bops = {
        .read_block = ad7606_spi_read_block18to32,
        .reg_read = ad7606_spi_reg_read,
        .reg_write = ad7606_spi_reg_write,
-       .rd_wr_cmd = ad7606B_spi_rd_wr_cmd,
+       .rd_wr_cmd = ad7606b_spi_rd_wr_cmd,
        .sw_mode_config = ad7606c_18_sw_mode_config,
 };