linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][next] regulator: lp87565: fix missing break in switch statement
@ 2019-06-27 13:16 Colin King
  2019-06-28  3:28 ` Keerthy
  2019-06-28 14:36 ` Mark Brown
  0 siblings, 2 replies; 9+ messages in thread
From: Colin King @ 2019-06-27 13:16 UTC (permalink / raw)
  To: Keerthy, Liam Girdwood, Mark Brown, Lee Jones
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
break statement, causing it to fall through to a dev_err message.
Fix this by adding in the missing break statement.

Addresses-Coverity: ("Missing break in switch")
Fixes: 7ee63bd74750 ("regulator: lp87565: Add 4-phase lp87561 regulator support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/regulator/lp87565-regulator.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/lp87565-regulator.c b/drivers/regulator/lp87565-regulator.c
index 993c11702083..5d067f7c2116 100644
--- a/drivers/regulator/lp87565-regulator.c
+++ b/drivers/regulator/lp87565-regulator.c
@@ -180,6 +180,7 @@ static int lp87565_regulator_probe(struct platform_device *pdev)
 	case LP87565_DEVICE_TYPE_LP87561_Q1:
 		min_idx = LP87565_BUCK_3210;
 		max_idx = LP87565_BUCK_3210;
+		break;
 	default:
 		dev_err(lp87565->dev, "Invalid lp config %d\n",
 			lp87565->dev_type);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement
  2019-06-27 13:16 [PATCH][next] regulator: lp87565: fix missing break in switch statement Colin King
@ 2019-06-28  3:28 ` Keerthy
  2019-06-28 14:36 ` Mark Brown
  1 sibling, 0 replies; 9+ messages in thread
From: Keerthy @ 2019-06-28  3:28 UTC (permalink / raw)
  To: Colin King, Liam Girdwood, Mark Brown, Lee Jones
  Cc: kernel-janitors, linux-kernel



On 27/06/19 6:46 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
> break statement, causing it to fall through to a dev_err message.
> Fix this by adding in the missing break statement.
> 
> Addresses-Coverity: ("Missing break in switch")
> Fixes: 7ee63bd74750 ("regulator: lp87565: Add 4-phase lp87561 regulator support")
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   drivers/regulator/lp87565-regulator.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/regulator/lp87565-regulator.c b/drivers/regulator/lp87565-regulator.c
> index 993c11702083..5d067f7c2116 100644
> --- a/drivers/regulator/lp87565-regulator.c
> +++ b/drivers/regulator/lp87565-regulator.c
> @@ -180,6 +180,7 @@ static int lp87565_regulator_probe(struct platform_device *pdev)
>   	case LP87565_DEVICE_TYPE_LP87561_Q1:
>   		min_idx = LP87565_BUCK_3210;
>   		max_idx = LP87565_BUCK_3210;
> +		break;

Thanks Colin.

Reviewed-by: Keerthy <j-keerthy@ti.com>

>   	default:
>   		dev_err(lp87565->dev, "Invalid lp config %d\n",
>   			lp87565->dev_type);
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement
  2019-06-27 13:16 [PATCH][next] regulator: lp87565: fix missing break in switch statement Colin King
  2019-06-28  3:28 ` Keerthy
@ 2019-06-28 14:36 ` Mark Brown
  2019-06-28 21:18   ` Colin Ian King
  1 sibling, 1 reply; 9+ messages in thread
From: Mark Brown @ 2019-06-28 14:36 UTC (permalink / raw)
  To: Colin King
  Cc: Keerthy, Liam Girdwood, Lee Jones, kernel-janitors, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
> break statement, causing it to fall through to a dev_err message.
> Fix this by adding in the missing break statement.

This doesn't apply against current code, please check and resend.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement
  2019-06-28 14:36 ` Mark Brown
@ 2019-06-28 21:18   ` Colin Ian King
  2019-07-02 10:44     ` Lee Jones
  0 siblings, 1 reply; 9+ messages in thread
From: Colin Ian King @ 2019-06-28 21:18 UTC (permalink / raw)
  To: Mark Brown
  Cc: Keerthy, Liam Girdwood, Lee Jones, kernel-janitors, linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 584 bytes --]

On 28/06/2019 15:36, Mark Brown wrote:
> On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote:
>> From: Colin Ian King <colin.king@canonical.com>
>>
>> Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
>> break statement, causing it to fall through to a dev_err message.
>> Fix this by adding in the missing break statement.
> 
> This doesn't apply against current code, please check and resend.
> 
So it applies cleanly against linux-next, I think the original code
landed in mfd/for-mfd-next - c.f. https://lkml.org/lkml/2019/5/28/550

Colin



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement
  2019-06-28 21:18   ` Colin Ian King
@ 2019-07-02 10:44     ` Lee Jones
  2019-07-02 11:12       ` Colin Ian King
  0 siblings, 1 reply; 9+ messages in thread
From: Lee Jones @ 2019-07-02 10:44 UTC (permalink / raw)
  To: Colin Ian King
  Cc: Mark Brown, Keerthy, Liam Girdwood, kernel-janitors, linux-kernel

On Fri, 28 Jun 2019, Colin Ian King wrote:

> On 28/06/2019 15:36, Mark Brown wrote:
> > On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote:
> >> From: Colin Ian King <colin.king@canonical.com>
> >>
> >> Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
> >> break statement, causing it to fall through to a dev_err message.
> >> Fix this by adding in the missing break statement.
> > 
> > This doesn't apply against current code, please check and resend.
> > 
> So it applies cleanly against linux-next, I think the original code
> landed in mfd/for-mfd-next - c.f. https://lkml.org/lkml/2019/5/28/550

Applied, thanks Colin.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement
  2019-07-02 10:44     ` Lee Jones
@ 2019-07-02 11:12       ` Colin Ian King
  2019-07-02 11:31         ` Lee Jones
  2019-07-02 12:24         ` Mark Brown
  0 siblings, 2 replies; 9+ messages in thread
From: Colin Ian King @ 2019-07-02 11:12 UTC (permalink / raw)
  To: Lee Jones
  Cc: Mark Brown, Keerthy, Liam Girdwood, kernel-janitors, linux-kernel

On 02/07/2019 11:44, Lee Jones wrote:
> On Fri, 28 Jun 2019, Colin Ian King wrote:
> 
>> On 28/06/2019 15:36, Mark Brown wrote:
>>> On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote:
>>>> From: Colin Ian King <colin.king@canonical.com>
>>>>
>>>> Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
>>>> break statement, causing it to fall through to a dev_err message.
>>>> Fix this by adding in the missing break statement.
>>>
>>> This doesn't apply against current code, please check and resend.
>>>
>> So it applies cleanly against linux-next, I think the original code
>> landed in mfd/for-mfd-next - c.f. https://lkml.org/lkml/2019/5/28/550
> 
> Applied, thanks Colin.
> 
I'm confused, who is the official maintainer of the regulator patches
nowadays?

Colin

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement
  2019-07-02 11:12       ` Colin Ian King
@ 2019-07-02 11:31         ` Lee Jones
  2019-07-02 11:36           ` Keerthy
  2019-07-02 12:24         ` Mark Brown
  1 sibling, 1 reply; 9+ messages in thread
From: Lee Jones @ 2019-07-02 11:31 UTC (permalink / raw)
  To: Colin Ian King
  Cc: Mark Brown, Keerthy, Liam Girdwood, kernel-janitors, linux-kernel

On Tue, 02 Jul 2019, Colin Ian King wrote:

> On 02/07/2019 11:44, Lee Jones wrote:
> > On Fri, 28 Jun 2019, Colin Ian King wrote:
> > 
> >> On 28/06/2019 15:36, Mark Brown wrote:
> >>> On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote:
> >>>> From: Colin Ian King <colin.king@canonical.com>
> >>>>
> >>>> Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
> >>>> break statement, causing it to fall through to a dev_err message.
> >>>> Fix this by adding in the missing break statement.
> >>>
> >>> This doesn't apply against current code, please check and resend.
> >>>
> >> So it applies cleanly against linux-next, I think the original code
> >> landed in mfd/for-mfd-next - c.f. https://lkml.org/lkml/2019/5/28/550
> > 
> > Applied, thanks Colin.
> > 
> I'm confused, who is the official maintainer of the regulator patches
> nowadays?

Mark.  But the patch you're fixing is currently in the MFD tree.

I sent him an updated pull-request.

Don't worry mate, you're in good hands. ;)

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement
  2019-07-02 11:31         ` Lee Jones
@ 2019-07-02 11:36           ` Keerthy
  0 siblings, 0 replies; 9+ messages in thread
From: Keerthy @ 2019-07-02 11:36 UTC (permalink / raw)
  To: Lee Jones, Colin Ian King
  Cc: Mark Brown, Liam Girdwood, kernel-janitors, linux-kernel



On 02/07/19 5:01 PM, Lee Jones wrote:
> On Tue, 02 Jul 2019, Colin Ian King wrote:
> 
>> On 02/07/2019 11:44, Lee Jones wrote:
>>> On Fri, 28 Jun 2019, Colin Ian King wrote:
>>>
>>>> On 28/06/2019 15:36, Mark Brown wrote:
>>>>> On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote:
>>>>>> From: Colin Ian King <colin.king@canonical.com>
>>>>>>
>>>>>> Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
>>>>>> break statement, causing it to fall through to a dev_err message.
>>>>>> Fix this by adding in the missing break statement.
>>>>>
>>>>> This doesn't apply against current code, please check and resend.
>>>>>
>>>> So it applies cleanly against linux-next, I think the original code
>>>> landed in mfd/for-mfd-next - c.f. https://lkml.org/lkml/2019/5/28/550
>>>
>>> Applied, thanks Colin.
>>>
>> I'm confused, who is the official maintainer of the regulator patches
>> nowadays?
> 
> Mark.  But the patch you're fixing is currently in the MFD tree.
> 
> I sent him an updated pull-request.

Thanks Lee!

> 
> Don't worry mate, you're in good hands. ;)
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement
  2019-07-02 11:12       ` Colin Ian King
  2019-07-02 11:31         ` Lee Jones
@ 2019-07-02 12:24         ` Mark Brown
  1 sibling, 0 replies; 9+ messages in thread
From: Mark Brown @ 2019-07-02 12:24 UTC (permalink / raw)
  To: Colin Ian King
  Cc: Lee Jones, Keerthy, Liam Girdwood, kernel-janitors, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

On Tue, Jul 02, 2019 at 12:12:10PM +0100, Colin Ian King wrote:
> On 02/07/2019 11:44, Lee Jones wrote:
> > On Fri, 28 Jun 2019, Colin Ian King wrote:

> >> So it applies cleanly against linux-next, I think the original code
> >> landed in mfd/for-mfd-next - c.f. https://lkml.org/lkml/2019/5/28/550

> > Applied, thanks Colin.

> I'm confused, who is the official maintainer of the regulator patches
> nowadays?

Me and Liam but since this patch only applies against Lee's tree he's
applied it there (I didn't think it was worth me picking up the entire
cross tree merge branch Lee prepared for this one fix, if Lee hadn't
picked it up it'd have waited till after the merge window).

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-02 12:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-27 13:16 [PATCH][next] regulator: lp87565: fix missing break in switch statement Colin King
2019-06-28  3:28 ` Keerthy
2019-06-28 14:36 ` Mark Brown
2019-06-28 21:18   ` Colin Ian King
2019-07-02 10:44     ` Lee Jones
2019-07-02 11:12       ` Colin Ian King
2019-07-02 11:31         ` Lee Jones
2019-07-02 11:36           ` Keerthy
2019-07-02 12:24         ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).