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

staging:iio:meter: Remove unused macro IIO_DEV_ATTR_CH_OFF

This patch removes the macro IIO_DEV_ATTR_CH_OFF. The macro
IIO_DEV_ATTR_CH_OFF is not required, due to the replace of it by the
direct use of IIO_DEVICE_ATTR in files staging/iio/meter/ade7759.c and
staging/iio/meter/ade7753.c.

Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Rodrigo Siqueira and committed by
Jonathan Cameron
b5724925 75f800a7

-3
-3
drivers/staging/iio/meter/meter.h
··· 348 348 #define IIO_DEV_ATTR_VPERIOD(_mode, _show, _store, _addr) \ 349 349 IIO_DEVICE_ATTR(vperiod, _mode, _show, _store, _addr) 350 350 351 - #define IIO_DEV_ATTR_CH_OFF(_num, _mode, _show, _store, _addr) \ 352 - IIO_DEVICE_ATTR(choff_##_num, _mode, _show, _store, _addr) 353 - 354 351 /* active energy register, AENERGY, is more than half full */ 355 352 #define IIO_EVENT_ATTR_AENERGY_HALF_FULL(_evlist, _show, _store, _mask) \ 356 353 IIO_EVENT_ATTR_SH(aenergy_half_full, _evlist, _show, _store, _mask)