Thread (1 message) 1 message, 1 author, 2012-02-24

Re: [PATCH v3 06/10] pwm: Add NVIDIA Tegra SoC support

From: Thierry Reding <hidden>
Date: 2012-02-24 06:48:51
Also in: linux-arm-kernel, linux-tegra

* Ryan Mallon wrote:
On 23/02/12 19:14, Thierry Reding wrote:
quoted
* Ryan Mallon wrote:
[...]
quoted
quoted
pwmchip_add should probably verify that the initialisation of the
pwm_chip structure is sane to avoid problems like this.
Absolutely. What would be the best response to an invalid struct pwm_chip? I
suppose at least returning -EINVAL, perhaps complemented with WARN_ON?
Just returning -EINVAL should be okay. I don't think you need a WARN_ON,
since failing to register the hardware should be enough of a reason for
a user to report a problem.
Okay, will do.

Thierry

Attachments

  • (unnamed) [application/pgp-signature] 198 bytes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help