diff options
author | Brian Wood <brian.j.wood@intel.com> | 2015-10-30 10:24:15 -0700 |
---|---|---|
committer | Mohammed Habibulla <moch@google.com> | 2015-11-18 16:46:19 -0800 |
commit | 44e42fa92e037be4c052d461faad46b8dc2ac810 (patch) | |
tree | d97912cd285ffd32defd28f9871bd3725a99872b | |
parent | bb941f33e1b31fef8ce395f01e4508a9a61b7d90 (diff) | |
download | edison-v3.10-44e42fa92e037be4c052d461faad46b8dc2ac810.tar.gz |
Remove extranious dmesg logging from LED driver
Convert the pr_* (besides pr_err and above)
into the LED_DBG macro to only display when
explicitly asked for.
BUG=25763491
Change-Id: Ica02facfc65fd4cb2cf55db45338af7d6726e920
Signed-off-by: Brian Wood <brian.j.wood@intel.com>
-rw-r--r-- | drivers/leds/leds-edison-gpio-flash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/leds/leds-edison-gpio-flash.c b/drivers/leds/leds-edison-gpio-flash.c index 9ca19b13598..03bc2e26e8d 100644 --- a/drivers/leds/leds-edison-gpio-flash.c +++ b/drivers/leds/leds-edison-gpio-flash.c @@ -80,7 +80,7 @@ static int led_gpio_request(struct led_classdev *led_cdev) GPIO_LABEL_TRI_STATE); if (flash_led->gpio_pin_tri_state_state == -EBUSY) { /* GPIO is exported by MRAA */ - pr_info("%s: GPIO_TRI_STATE_ALL (%d) is busy/exported " + LED_DBG("%s: GPIO_TRI_STATE_ALL (%d) is busy/exported " "by someone, we need to set direction to input\n", __func__, flash_led->gpio_pin_tri_state_num); /* Set direction for pin */ @@ -90,7 +90,7 @@ static int led_gpio_request(struct led_classdev *led_cdev) ",rc=%d\n", __func__, flash_led->gpio_pin_tri_state_num, rc); else - pr_info("%s: Setting GPIO %d direction to input " + LED_DBG("%s: Setting GPIO %d direction to input " "succeeded, rc=%d.\n", __func__, flash_led->gpio_pin_tri_state_num, rc); @@ -173,7 +173,7 @@ static int led_gpio_free(struct led_classdev *led_cdev) __func__, GPIO_TRI_STATE_ALL); gpio_free(flash_led->gpio_pin_tri_state_num); } else { - pr_info("%s: GPIO_TRI_STATE_ALL (%d) is being reset " + LED_DBG("%s: GPIO_TRI_STATE_ALL (%d) is being reset " "back to output direction\n", __func__, flash_led->gpio_pin_tri_state_num); /* Set direction for pin */ @@ -183,7 +183,7 @@ static int led_gpio_free(struct led_classdev *led_cdev) ",rc=%d\n", __func__, flash_led->gpio_pin_tri_state_num, rc); else - pr_info("%s: Setting GPIO %d direction to output " + LED_DBG("%s: Setting GPIO %d direction to output " "succeeded, rc=%d.\n", __func__, flash_led->gpio_pin_tri_state_num, rc); |