@@ -175,7 +175,7 @@ void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq)
mmc_should_fail_request(host, mrq);
if (!host->ongoing_mrq)
- led_trigger_event(host->led, LED_OFF);
+ led_trigger_event(host->led, 0);
if (mrq->sbc) {
pr_debug("%s: req done <CMD%u>: %d: %08x %08x %08x %08x\n",
@@ -352,7 +352,7 @@ int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
if (err)
return err;
- led_trigger_event(host->led, LED_FULL);
+ led_trigger_event(host->led, 255);
__mmc_start_request(host, mrq);
return 0;
@@ -1287,7 +1287,7 @@ static void rtsx_usb_update_led(struct work_struct *work)
if (host->power_mode == MMC_POWER_OFF)
goto out;
- if (host->led.brightness == LED_OFF)
+ if (host->led.brightness == 0)
rtsx_usb_turn_off_led(ucr);
else
rtsx_usb_turn_on_led(ucr);
@@ -1357,7 +1357,7 @@ static int rtsx_usb_sdmmc_drv_probe(struct platform_device *pdev)
snprintf(host->led_name, sizeof(host->led_name),
"%s::", mmc_hostname(mmc));
host->led.name = host->led_name;
- host->led.brightness = LED_OFF;
+ host->led.brightness = 0;
host->led.default_trigger = mmc_hostname(mmc);
host->led.brightness_set = rtsx_usb_led_control;
@@ -395,7 +395,7 @@ static void sdhci_led_control(struct led_classdev *led,
if (host->runtime_suspended)
goto out;
- if (brightness == LED_OFF)
+ if (brightness == 0)
__sdhci_led_deactivate(host);
else
__sdhci_led_activate(host);
@@ -414,7 +414,7 @@ static int sdhci_led_register(struct sdhci_host *host)
"%s::", mmc_hostname(mmc));
host->led.name = host->led_name;
- host->led.brightness = LED_OFF;
+ host->led.brightness = 0;
host->led.default_trigger = mmc_hostname(mmc);
host->led.brightness_set = sdhci_led_control;