[PATCH 2/7] backlight:pwm: add an element 'name' to platform data

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Sep 28 13:47:45 EDT 2010


On Tue, Sep 28, 2010 at 01:10:43PM +0530, Arun Murthy wrote:
> A new element 'name' is added to pwm backlight platform data structure.
> This is required to identify the pwm device.

> -	pb->pwm = pwm_request(data->pwm_id, "backlight");
> +	if (!data->name)
> +		data->name = "backlight";
> +	pb->pwm = pwm_request(data->pwm_id, data->name);

If we're going to go through and require that all PWM API users be
updated to take platform data for the name might it not be better to
switch over to the clock API style request by device interface?



More information about the linux-arm-kernel mailing list