Skip to content

Commit 26658cc

Browse files
committed
bh1730: change channel configuration to something more standard
1 parent de94d20 commit 26658cc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/iio/light/bh1730.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,19 +319,17 @@ static const struct iio_info bh1730_info = {
319319
static const struct iio_chan_spec bh1730_channels[] = {
320320
{
321321
.type = IIO_LIGHT,
322-
.modified = 1,
323-
.channel2 = IIO_MOD_LIGHT_BOTH,
324322
.info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED),
325323
},
326324
{
327-
.type = IIO_LIGHT,
325+
.type = IIO_INTENSITY,
328326
.modified = 1,
329327
.channel2 = IIO_MOD_LIGHT_CLEAR,
330328
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |
331329
BIT(IIO_CHAN_INFO_SCALE),
332330
},
333331
{
334-
.type = IIO_LIGHT,
332+
.type = IIO_INTENSITY,
335333
.modified = 1,
336334
.channel2 = IIO_MOD_LIGHT_IR,
337335
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |

0 commit comments

Comments
 (0)