Commit 765f88f2 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

staging:iio:magnetometer: remove unused header magnet.h

Now all magnetomers are using iio_chan_spec there is no need for
the macros in magnet.h
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 694e1b5f
#include "../sysfs.h"
/* Magnetometer types of attribute */
#define IIO_DEV_ATTR_MAGN_X_OFFSET(_mode, _show, _store, _addr) \
IIO_DEVICE_ATTR(magn_x_offset, _mode, _show, _store, _addr)
#define IIO_DEV_ATTR_MAGN_Y_OFFSET(_mode, _show, _store, _addr) \
IIO_DEVICE_ATTR(magn_y_offset, _mode, _show, _store, _addr)
#define IIO_DEV_ATTR_MAGN_Z_OFFSET(_mode, _show, _store, _addr) \
IIO_DEVICE_ATTR(magn_z_offset, _mode, _show, _store, _addr)
#define IIO_DEV_ATTR_MAGN_X_SCALE(_mode, _show, _store, _addr) \
IIO_DEVICE_ATTR(magn_x_scale, _mode, _show, _store, _addr)
#define IIO_DEV_ATTR_MAGN_Y_SCALE(_mode, _show, _store, _addr) \
IIO_DEVICE_ATTR(magn_y_scale, _mode, _show, _store, _addr)
#define IIO_DEV_ATTR_MAGN_Z_SCALE(_mode, _show, _store, _addr) \
IIO_DEVICE_ATTR(magn_z_scale, _mode, _show, _store, _addr)
#define IIO_DEV_ATTR_MAGN_X(_show, _addr) \
IIO_DEVICE_ATTR(magn_x_raw, S_IRUGO, _show, NULL, _addr)
#define IIO_DEV_ATTR_MAGN_Y(_show, _addr) \
IIO_DEVICE_ATTR(magn_y_raw, S_IRUGO, _show, NULL, _addr)
#define IIO_DEV_ATTR_MAGN_Z(_show, _addr) \
IIO_DEVICE_ATTR(magn_z_raw, S_IRUGO, _show, NULL, _addr)
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