mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 07:59:42 -04:00
iio: adc: ad7606: use kernel identifier name style
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>
This commit is contained in:
committed by
Jonathan Cameron
parent
450f44b71a
commit
050cf84f0b
@@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user