diff options
author | Trent Piepho <tpiepho@freescale.com> | 2008-10-13 13:13:01 +0400 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-10-21 01:34:12 +0400 |
commit | 326bb8a5a12c6298a6bf6c74af490b1858b2f12c (patch) | |
tree | fd513f4869c4071a585350e458ffd7e8e5f834ac /init | |
parent | 132e9306beedd049bc5de037f1996731a2ca3eed (diff) | |
download | linux-326bb8a5a12c6298a6bf6c74af490b1858b2f12c.tar.xz |
leds: Make default trigger fields const
The default_trigger fields of struct gpio_led and thus struct
led_classdev are pretty much always assigned from a string literal,
which means the string can't be modified. Which is fine, since there is
no reason to modify the string and in fact it never is.
But they should be marked const to prevent such code from being added,
to prevent warnings if -Wwrite-strings is used, when assigned from a
constant string other than a string literal (which produces a warning
under current kernel compiler flags), and for general good coding
practices.
Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions