projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mfd: dm355evm_mps: Be sure to clamp return value
[deliverable/linux.git]
/
drivers
/
mfd
/
dm355evm_msp.c
diff --git
a/drivers/mfd/dm355evm_msp.c
b/drivers/mfd/dm355evm_msp.c
index 4c826f78acd020362a5e666432df13c9e19788bf..bf3e0b21b247b14d7150776fc94379576caa3650 100644
(file)
--- a/
drivers/mfd/dm355evm_msp.c
+++ b/
drivers/mfd/dm355evm_msp.c
@@
-147,7
+147,7
@@
static int msp_gpio_get(struct gpio_chip *chip, unsigned offset)
return status;
if (reg == DM355EVM_MSP_LED)
msp_led_cache = status;
- return
status & MSP_GPIO_MASK(offset
);
+ return
!!(status & MSP_GPIO_MASK(offset)
);
}
static int msp_gpio_out(struct gpio_chip *chip, unsigned offset, int value)
This page took
0.026666 seconds
and
5
git commands to generate.