On Sun, May 15, 2011 at 01:00:31AM -0700, Dmitry Torokhov wrote:Thanks for the suggestion. I'll upload a new patch.On Fri, May 13, 2011 at 06:13:21PM +0530, Mohan Pallaka wrote:This seems to be a recipe for an oops. Have a look at howFor chip drivers that support both pwm and non-pwm modesRussell,
would encounter compilation errors if the platform doesn't
have support for pwm though the chip is programmed to work
in non-pwm mode. Add __weak attributed pwm functions to avoid
compilation issues in these scenarios.
You seem to have authored pwm.h, do you have any objections to this
change?
linux/regulator/consumer.h deals with this kind of problem, and notice
that we have CONFIG_HAVE_PWM to indicate whether this interface is
supported or not.