/* For simplicity, we use "brightness" as if it were a linear function of PWM duty cycle. However, a logarithmic function of duty cycle is probably a better match for perceived brightness: two is half as bright as four, four is half as bright as eight, etc  */
static void pwmled_brightness(struct led_classdev *cdev, enum led_brightness b)
/* For simplicity, we use "brightness" as if it were a linear function of PWM duty cycle. However, a logarithmic function of duty cycle is probably a better match for perceived brightness: two is half as bright as four, four is half as bright as eight, etc  */
static void pwmled_brightness(struct led_classdev *cdev, enum led_brightness b)
{
	struct pwmled		 *led;
	led = container_of(cdev, struct pwmled, cdev);
	pwm_channel_writel(&led->pwmc, PWM_CUPD, led->mult * (unsigned) b);
}