ad5272.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) | ad5272.c (da803652534271dbb4af0802bd678c759e27e6de) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Analog Devices AD5272 digital potentiometer driver 4 * Copyright (C) 2018 Phil Reid <preid@electromag.com.au> 5 * 6 * Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/AD5272_5274.pdf 7 * 8 * DEVID #Wipers #Positions Resistor Opts (kOhm) i2c address --- 36 unchanged lines hidden (view full) --- 45 [AD5274_020] = { .max_pos = 256, .kohms = 20, .shift = 2 }, 46 [AD5274_100] = { .max_pos = 256, .kohms = 100, .shift = 2 }, 47}; 48 49struct ad5272_data { 50 struct i2c_client *client; 51 struct mutex lock; 52 const struct ad5272_cfg *cfg; | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Analog Devices AD5272 digital potentiometer driver 4 * Copyright (C) 2018 Phil Reid <preid@electromag.com.au> 5 * 6 * Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/AD5272_5274.pdf 7 * 8 * DEVID #Wipers #Positions Resistor Opts (kOhm) i2c address --- 36 unchanged lines hidden (view full) --- 45 [AD5274_020] = { .max_pos = 256, .kohms = 20, .shift = 2 }, 46 [AD5274_100] = { .max_pos = 256, .kohms = 100, .shift = 2 }, 47}; 48 49struct ad5272_data { 50 struct i2c_client *client; 51 struct mutex lock; 52 const struct ad5272_cfg *cfg; |
53 u8 buf[2] ____cacheline_aligned; | 53 u8 buf[2] __aligned(IIO_DMA_MINALIGN); |
54}; 55 56static const struct iio_chan_spec ad5272_channel = { 57 .type = IIO_RESISTANCE, 58 .output = 1, 59 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), 60 .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), 61}; --- 168 unchanged lines hidden --- | 54}; 55 56static const struct iio_chan_spec ad5272_channel = { 57 .type = IIO_RESISTANCE, 58 .output = 1, 59 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), 60 .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), 61}; --- 168 unchanged lines hidden --- |