/* There is actual brightness control in the hardware, but it is via smbus commands and not implemented in this driver.  */
static void nasgpio_led_set_brightness(struct led_classdev *led_cdev, enum led_brightness brightness)
/* There is actual brightness control in the hardware, but it is via smbus commands and not implemented in this driver.  */
static void nasgpio_led_set_brightness(struct led_classdev *led_cdev, enum led_brightness brightness)
{
	u32 setting = 0;
	if (brightness >= LED_HALF)
		setting = 1;
	spin_lock(&nasgpio_gpio_lock);
	if (brightness == 0)
		__nasgpio_led_set_attr(led_cdev, GPO_BLINK, 0);
	__nasgpio_led_set_attr(led_cdev, GP_LVL, setting);
	spin_unlock(&nasgpio_gpio_lock);
}