Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: sca3000: make stop_all_interrupts() return void

sca3000_stop_all_interrupts() is called only from the driver remove
path and its return value is discarded, so convert the helper to return
void.

No functional change.

Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Harshit Mogalapalli and committed by
Jonathan Cameron
8358169e aa598c22

+6 -7
+6 -7
drivers/iio/accel/sca3000.c
··· 1427 1427 .write_event_config = &sca3000_write_event_config, 1428 1428 }; 1429 1429 1430 - static int sca3000_stop_all_interrupts(struct sca3000_state *st) 1430 + static void sca3000_stop_all_interrupts(struct sca3000_state *st) 1431 1431 { 1432 1432 int ret; 1433 1433 ··· 1435 1435 ret = sca3000_read_data_short(st, SCA3000_REG_INT_MASK_ADDR, 1); 1436 1436 if (ret) 1437 1437 goto error_ret; 1438 - ret = sca3000_write_reg(st, SCA3000_REG_INT_MASK_ADDR, 1439 - (st->rx[0] & 1440 - ~(SCA3000_REG_INT_MASK_RING_THREE_QUARTER | 1441 - SCA3000_REG_INT_MASK_RING_HALF | 1442 - SCA3000_REG_INT_MASK_ALL_INTS))); 1438 + sca3000_write_reg(st, SCA3000_REG_INT_MASK_ADDR, 1439 + (st->rx[0] & 1440 + ~(SCA3000_REG_INT_MASK_RING_THREE_QUARTER | 1441 + SCA3000_REG_INT_MASK_RING_HALF | 1442 + SCA3000_REG_INT_MASK_ALL_INTS))); 1443 1443 error_ret: 1444 1444 mutex_unlock(&st->lock); 1445 - return ret; 1446 1445 } 1447 1446 1448 1447 static int sca3000_probe(struct spi_device *spi)