Skip to content

Commit a29c27f

Browse files
soburinashif
authored andcommitted
drivers: adc: ads1112: Remove unused variables
Remove unused variables for suppress warnings Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent a873c73 commit a29c27f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/adc/adc_ads1112.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ static int ads1112_read_sample(const struct device *dev, uint16_t *buff)
176176
{
177177
int res;
178178
uint8_t sample[2] = {0};
179-
const struct ads1112_config *config = dev->config;
180179

181180
res = ads1112_read_reg(dev, ADS1112_REG_OUTPUT, sample);
182181
buff[0] = sys_get_be16(sample);
@@ -263,8 +262,6 @@ static int ads1112_validate_buffer_size(const struct adc_sequence *sequence)
263262

264263
static int ads1112_validate_sequence(const struct device *dev, const struct adc_sequence *sequence)
265264
{
266-
const struct ads1112_data *data = dev->data;
267-
268265
if (sequence->channels != BIT(0)) {
269266
LOG_ERR("Invalid Channel 0x%x", sequence->channels);
270267
return -EINVAL;
@@ -360,7 +357,6 @@ static int ads1112_read(const struct device *dev, const struct adc_sequence *seq
360357
static int ads1112_init(const struct device *dev)
361358
{
362359
int rc = 0;
363-
uint8_t status;
364360
const struct ads1112_config *config = dev->config;
365361
struct ads1112_data *data = dev->data;
366362

0 commit comments

Comments
 (0)