regulator: s5m8767: Add missing breaks
PATCH 1/2 regulator: s5m8767: Add missing breaks
---
This patch is against Mark's regulator tree (for-next-next branch).
drivers/regulator/s5m8767.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/regulator/s5m8767.c +4 -0
@@ -742,15 +742,19 @@ static __devinit int s5m8767_pmic_probe(struct platform_device *pdev)case 15 :s5m_reg_update (s5m8767->iodev,S5M8767_REG_DVSRAMP ,0xc0 ,0xf0 ); +break ;case 25 :s5m_reg_update (s5m8767->iodev,S5M8767_REG_DVSRAMP ,0xd0 ,0xf0 ); +break ;case 50 :s5m_reg_update (s5m8767->iodev,S5M8767_REG_DVSRAMP ,0xe0 ,0xf0 ); +break ;case 100 :s5m_reg_update (s5m8767->iodev,S5M8767_REG_DVSRAMP ,0xf0 ,0xf0 ); +break ;default :s5m_reg_update (s5m8767->iodev,S5M8767_REG_DVSRAMP ,0x90 ,0xf0 );
Signature · 1 line
1.7.5.4
PATCH 2/2 regulator: s5m8767: Remove redundant MODULE_ALIAS
The MODULE_DEVICE_TABLE will setup the modalias, thus adding a MODULE_ALIAS for an entry already in s5m8767_pmic_id is redundant.
--- drivers/regulator/s5m8767.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/regulator/s5m8767.c +0 -1
@@ -835,4 +835,3 @@ module_exit(s5m8767_pmic_exit);MODULE_AUTHOR ("Sangbeom Kim <[email protected]>" );MODULE_DESCRIPTION ("SAMSUNG S5M8767 Regulator Driver" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("platform:s5m8767-pmic" );
Signature · 1 line
1.7.5.4
RE: [PATCH 2/2] regulator: s5m8767: Remove redundant MODULE_ALIAS
Quoted 4 lines · Axel Lin
The
MODULE_DEVICE_TABLEwill setup the modalias, thus adding aMODULE_ALIASfor an entry already ins5m8767_pmic_idis redundant.Signed-off-by Axel Lin <[email protected]>
Thanks,
Sangbeom.
Quoted 5 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>---
This patch is against Mark's regulator tree (for-next-next branch).drivers/regulator/s5m8767.c | 4 ++++
During normal test, I can't detect the problem. But It should add break to apply proper ramp slope.
Thanks,
Sangbeom.
Quoted 2 lines · Sangbeom Kim
During normal test, I can't detect the problem. But It should add break to apply proper ramp slope.
Looking at the code you're unlikely to see a problem as the failure will be to ramp more slowly which will just reduce performance rather than cause crashes or anything like ramping too quickly can.
Mark Brown
AppliedQuoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Applied both, thanks.