<div dir="ltr">Hi, <div>I am trying to send the brightness value ( for 5 channels) by </div><div> echo "val1val2val3val4val5" > brightness , </div><div>But seems like even if I change the brightness type to enum or int in my driver ,I will never be able to send the brightness string because led class defines the brightness value as enum.</div><div><pre style="padding:1em;overflow:auto"><font color="#787878" face="monaco, courier new, courier, monospace"><span style="font-size:12.35px"><b>extern void led_set_brightness(struct led_classdev *led_cdev,
enum led_brightness brightness);</b></span><span style="font-size:0.95em"><b><br></b></span></font></pre></div><div>Only possible way I am finding is to create attributes for each channel like brightness,default trigger,max_brightness and any user defined attributes, but i am not getting how to do this.</div><div>Can some on please comment or post the link to the example driver.</div><div>Do i have to call led_class_register for every channel and I have to define every channel in the device tree?</div><div>Thanks in advance !</div><div>Regards,</div><div>Rp</div></div>