summaryrefslogtreecommitdiff
path: root/Template
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-10-21 12:03:35 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-10-21 12:03:35 +0200
commit7ca8017e5abf4400d0e19c05633d4553092a4c3c (patch)
treee63620375adfed0ec1b3a3e0ccc8ba59d72adda1 /Template
parent8368a551382bfa3a50b393873be341cd3c17f6df (diff)
trafgen: proto: Don't drop const qualifier during cast
Don't drop const qualifier during cast to uint32_t * Found by compiling with -Wcast-qual. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Template')
0 files changed, 0 insertions, 0 deletions
>diff)
regulators: helpers: Fix handling of bypass_val_on in get_bypass_regmap
The handling of bypass_val_on that was added in regulator_get_bypass_regmap is done unconditionally however several drivers don't define a value for bypass_val_on. This results in those drivers reporting bypass being enabled when it is not. In regulator_set_bypass_regmap we use bypass_mask if bypass_val_on is zero. This patch adds similar handling in regulator_get_bypass_regmap. Fixes: commit dd1a571daee7 ("regulator: helpers: Ensure bypass register field matches ON value") Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/usb/gadget/udc')