Commit fefbc4a5 authored by Nuno Sa's avatar Nuno Sa Committed by Jonathan Cameron

iio: adc: ad9467: change struct members padding

Using tabs and maintaining the start of the variables aligned is a pain and
may lead to lot's of unrelated changes when adding new members. Hence,
let's change things now and just have a simple space.
Signed-off-by: default avatarNuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240522-dev-ad9467-dma-v2-2-a37bec463632@analog.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 7a8e7f13
...@@ -107,27 +107,27 @@ ...@@ -107,27 +107,27 @@
#define AD9647_MAX_TEST_POINTS 32 #define AD9647_MAX_TEST_POINTS 32
struct ad9467_chip_info { struct ad9467_chip_info {
const char *name; const char *name;
unsigned int id; unsigned int id;
const struct iio_chan_spec *channels; const struct iio_chan_spec *channels;
unsigned int num_channels; unsigned int num_channels;
const unsigned int (*scale_table)[2]; const unsigned int (*scale_table)[2];
int num_scales; int num_scales;
unsigned long max_rate; unsigned long max_rate;
unsigned int default_output_mode; unsigned int default_output_mode;
unsigned int vref_mask; unsigned int vref_mask;
unsigned int num_lanes; unsigned int num_lanes;
/* data clock output */ /* data clock output */
bool has_dco; bool has_dco;
}; };
struct ad9467_state { struct ad9467_state {
const struct ad9467_chip_info *info; const struct ad9467_chip_info *info;
struct iio_backend *back; struct iio_backend *back;
struct spi_device *spi; struct spi_device *spi;
struct clk *clk; struct clk *clk;
unsigned int output_mode; unsigned int output_mode;
unsigned int (*scales)[2]; unsigned int (*scales)[2];
/* /*
* Times 2 because we may also invert the signal polarity and run the * Times 2 because we may also invert the signal polarity and run the
* calibration again. For some reference on the test points (ad9265) see: * calibration again. For some reference on the test points (ad9265) see:
...@@ -138,10 +138,10 @@ struct ad9467_state { ...@@ -138,10 +138,10 @@ struct ad9467_state {
* at the io delay control section. * at the io delay control section.
*/ */
DECLARE_BITMAP(calib_map, AD9647_MAX_TEST_POINTS * 2); DECLARE_BITMAP(calib_map, AD9647_MAX_TEST_POINTS * 2);
struct gpio_desc *pwrdown_gpio; struct gpio_desc *pwrdown_gpio;
/* ensure consistent state obtained on multiple related accesses */ /* ensure consistent state obtained on multiple related accesses */
struct mutex lock; struct mutex lock;
u8 buf[3] __aligned(IIO_DMA_MINALIGN); u8 buf[3] __aligned(IIO_DMA_MINALIGN);
}; };
static int ad9467_spi_read(struct ad9467_state *st, unsigned int reg) static int ad9467_spi_read(struct ad9467_state *st, unsigned int reg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment