We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a5f80b commit a214ed8Copy full SHA for a214ed8
drivers/iio/light/opt4060.c
@@ -1083,16 +1083,14 @@ static irqreturn_t opt4060_trigger_handler(int irq, void *p)
1083
struct {
1084
u32 chan[OPT4060_NUM_CHANS];
1085
aligned_s64 ts;
1086
- } raw;
+ } raw = { };
1087
int i = 0;
1088
int chan, ret;
1089
1090
/* If the trigger is not from this driver, a new sample is needed.*/
1091
if (iio_trigger_validate_own_device(idev->trig, idev))
1092
opt4060_trigger_new_samples(idev);
1093
1094
- memset(&raw, 0, sizeof(raw));
1095
-
1096
iio_for_each_active_channel(idev, chan) {
1097
if (chan == OPT4060_ILLUM)
1098
ret = opt4060_calc_illuminance(chip, &raw.chan[i++]);
0 commit comments