Hi Eric,
Thanks for the tip, I've updated the leds-pwm.c driver as you suggested but I'm not sure how to register the platform device.
I'm still on kernel 3.0.35 and all the examples I have use leds-gpio or pwm-backlight. I haven't had to add a platform device yet but looking at leds_pwm.h and other platform devices I came up with this:
static struct led_pwm imx6_led_pwms[] = {
{
.name = "buzzer",
.default_trigger = ,
.pwm_id = 2,
.active_low = ,
.max_brightness = ,
.pwm_period_ns = ,
}
};
static struct led_pwm_platform_data imx6q_led_pwms_data = {
.leds = imx6q_pwm_leds,
.num_leds = ARRAY_SIZE(imx6q_led_pwms),
};
static struct platform_device imx6q_pwm_led_device = {
.name = "leds-pwm",
.id = 1,
.num_resources = ,
.dev = {
.platform_data = &imx6q_led_pwms_data,
}
};
static void __init imx6q_add_device_led_pwms(void)
{
platform_device_register(&imx6q_pwm_led_device);
}
Could you help me fill in the blanks? Or point me towards an example?