Re: [PATCH v16 04/19] leds: multicolor: Introduce a multicolor class definition

From: Dan Murphy
Date: Thu Nov 14 2019 - 07:57:33 EST


Martin

On 11/14/19 5:24 AM, Martin Fuzzey wrote:
Hi Dan,

On 04/11/2019 13:36, Dan Murphy wrote:
+int devm_led_classdev_multicolor_register_ext(struct device *parent,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ struct led_classdev_mc *mcled_cdev,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ struct led_init_data *init_data)
+{
+ÂÂÂ struct led_classdev_mc **dr;
+ÂÂÂ int ret;
+
+ÂÂÂ dr = devres_alloc(devm_led_classdev_multicolor_release,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂ sizeof(*dr), GFP_KERNEL);
+ÂÂÂ if (!dr)
+ÂÂÂÂÂÂÂ return -ENOMEM;
+
+ÂÂÂ ret = led_classdev_multicolor_register(parent, mcled_cdev);


This drops init_data, should be led_classdev_multicolor_register_ex

Thanks for the issue I will fix and send v17

Dan