Re: [PATCH 2/2] leds: lm3692x: Introduce LM3692x dual string driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Pavel

On 11/15/2017 07:00 AM, Pavel Machek wrote:
> Hi!
> 
>>>> +	ret = regmap_write(led->regmap, LM3692X_PWM_CTRL,
>>>> +		LM3692X_PWM_FILTER_100 | LM3692X_PWM_SAMP_24MHZ);
>>>> +	if (ret)
>>>> +		dev_err(&led->client->dev, "Failed programming PWM CTRL\n");
>>>> +
>>>> +	ret = regmap_write(led->regmap, LM3692X_BOOST_CTRL,
>>>> +			LM3692X_BRHT_MODE_RAMP_MULTI |
>>>> +			LM3692X_BL_ADJ_POL |
>>>> +			LM3692X_RAMP_RATE_250us);
>>>> +	if (ret)
>>>> +		dev_err(&led->client->dev, "Failed programming BOOST CTRL\n");
>>>> +
>>>> +	ret = regmap_write(led->regmap, LM3692X_AUTO_FREQ_HI, 0x00);
>>>> +	if (ret)
>>>> +		dev_err(&led->client->dev, "Failed programming AUTO HI FREQ\n");
>>>
>>> If something fails, is it wise to continue?
> 
> If something fails, is it wise to continue?
> 

Sorry missed that comment.  It is ok to continue but probably should goto out and return
an error so the probe fails.

Dan

> 									Pavel
> 


-- 
------------------
Dan Murphy
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux