Thread (23 messages) 23 messages, 5 authors, 2017-12-18

Re: [PATCH 3/5] media: i2c: Add TDA1997x HDMI receiver driver

From: Tim Harvey <tharvey@gateworks.com>
Date: 2017-12-18 22:21:57
Also in: alsa-devel, linux-media, lkml

On Sat, Dec 16, 2017 at 11:32 AM, Fabio Estevam [off-list ref] wrote:
Hi Tim,

On Thu, Nov 9, 2017 at 4:45 PM, Tim Harvey [off-list ref] wrote:
quoted
+static int tda1997x_set_power(struct tda1997x_state *state, bool on)
+{
+       int ret = 0;
+
+       if (on) {
+               ret = regulator_bulk_enable(TDA1997X_NUM_SUPPLIES,
+                                            state->supplies);
+               msleep(300);
Didn't you miss a 'return ret' here?

Otherwise regulator_bulk_disable() will always be called below.
Fabio,

Yes thanks for catching that. I'll fix in the next revision.

Tim
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help