diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-08-18 08:59:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-08-19 15:12:03 -0400 |
commit | 4c730292656675000a3631b12cefb6238c57d1e3 (patch) | |
tree | c753f03d8c83a536dc393919c85d65138714de14 /drivers/iio | |
parent | 0c0427acd5bfd25a44c074ac0a517d667ddf0a27 (diff) |
iio: adjd_s311: Cleanup unused #defines
using word reads, no need for HI/LO register #defines
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/light/adjd_s311.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c index 55b9e185d164..00ab980f8e3c 100644 --- a/drivers/iio/light/adjd_s311.c +++ b/drivers/iio/light/adjd_s311.c | |||
@@ -37,22 +37,14 @@ | |||
37 | #define ADJD_S311_CAP_GREEN 0x07 | 37 | #define ADJD_S311_CAP_GREEN 0x07 |
38 | #define ADJD_S311_CAP_BLUE 0x08 | 38 | #define ADJD_S311_CAP_BLUE 0x08 |
39 | #define ADJD_S311_CAP_CLEAR 0x09 | 39 | #define ADJD_S311_CAP_CLEAR 0x09 |
40 | #define ADJD_S311_INT_RED_LO 0x0a | 40 | #define ADJD_S311_INT_RED 0x0a |
41 | #define ADJD_S311_INT_RED_HI 0x0b | 41 | #define ADJD_S311_INT_GREEN 0x0c |
42 | #define ADJD_S311_INT_GREEN_LO 0x0c | 42 | #define ADJD_S311_INT_BLUE 0x0e |
43 | #define ADJD_S311_INT_GREEN_HI 0x0d | 43 | #define ADJD_S311_INT_CLEAR 0x10 |
44 | #define ADJD_S311_INT_BLUE_LO 0x0e | 44 | #define ADJD_S311_DATA_RED 0x40 |
45 | #define ADJD_S311_INT_BLUE_HI 0x0f | 45 | #define ADJD_S311_DATA_GREEN 0x42 |
46 | #define ADJD_S311_INT_CLEAR_LO 0x10 | 46 | #define ADJD_S311_DATA_BLUE 0x44 |
47 | #define ADJD_S311_INT_CLEAR_HI 0x11 | 47 | #define ADJD_S311_DATA_CLEAR 0x46 |
48 | #define ADJD_S311_DATA_RED_LO 0x40 | ||
49 | #define ADJD_S311_DATA_RED_HI 0x41 | ||
50 | #define ADJD_S311_DATA_GREEN_LO 0x42 | ||
51 | #define ADJD_S311_DATA_GREEN_HI 0x43 | ||
52 | #define ADJD_S311_DATA_BLUE_LO 0x44 | ||
53 | #define ADJD_S311_DATA_BLUE_HI 0x45 | ||
54 | #define ADJD_S311_DATA_CLEAR_LO 0x46 | ||
55 | #define ADJD_S311_DATA_CLEAR_HI 0x47 | ||
56 | #define ADJD_S311_OFFSET_RED 0x48 | 48 | #define ADJD_S311_OFFSET_RED 0x48 |
57 | #define ADJD_S311_OFFSET_GREEN 0x49 | 49 | #define ADJD_S311_OFFSET_GREEN 0x49 |
58 | #define ADJD_S311_OFFSET_BLUE 0x4a | 50 | #define ADJD_S311_OFFSET_BLUE 0x4a |
@@ -73,8 +65,8 @@ enum adjd_s311_channel_idx { | |||
73 | IDX_RED, IDX_GREEN, IDX_BLUE, IDX_CLEAR | 65 | IDX_RED, IDX_GREEN, IDX_BLUE, IDX_CLEAR |
74 | }; | 66 | }; |
75 | 67 | ||
76 | #define ADJD_S311_DATA_REG(chan) (ADJD_S311_DATA_RED_LO + (chan) * 2) | 68 | #define ADJD_S311_DATA_REG(chan) (ADJD_S311_DATA_RED + (chan) * 2) |
77 | #define ADJD_S311_INT_REG(chan) (ADJD_S311_INT_RED_LO + (chan) * 2) | 69 | #define ADJD_S311_INT_REG(chan) (ADJD_S311_INT_RED + (chan) * 2) |
78 | #define ADJD_S311_CAP_REG(chan) (ADJD_S311_CAP_RED + (chan)) | 70 | #define ADJD_S311_CAP_REG(chan) (ADJD_S311_CAP_RED + (chan)) |
79 | 71 | ||
80 | static int adjd_s311_req_data(struct iio_dev *indio_dev) | 72 | static int adjd_s311_req_data(struct iio_dev *indio_dev) |