Re: [PATCH 1/4] ARM: dts: shmobile: remove label property from led

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Simon,

The patch index in the subject should have been 0/4. You're breaking my
script to extract patch series from email threads ;-)

On Fri, Aug 26, 2016 at 3:49 PM, Simon Horman
<horms+renesas@xxxxxxxxxxxx> wrote:
> Remove label property from led nodes. This seems to have little
> value and is used inconsistently amongst Renesas SoCs.
>
> Based on renesas-devel-20160824-v4.8-rc3
>
> Simon Horman (4):
>   ARM: dts: armadillo800eva: remove label property from led nodes
>   ARM: dts: koelsch: remove label property from led nodes
>   ARM: dts: gose: remove label property from led nodes
>   ARM: dts: kzm9g: remove label property from led nodes

Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

I assume you are aware this is a user-visible change?
The LED name is exposed under /sys/class/leds/.
Fortunately my LED init script is agnostic to the actual names ;-)

if [ -d /sys/class/leds ]; then
        echo -n Enabling LEDs:
        i=-1
        for led in /sys/class/leds/*; do
                case $i in
                -1)
                        echo -n " heartbeat"
                        echo heartbeat > $led/trigger
                        ;;
                *)
                        if grep -qP "^processor.*: $i$" /proc/cpuinfo; then
                                echo -n " cpu$i"
                                echo cpu$i > $led/trigger
                        fi
                        ;;
                esac
                i=$(($i + 1))
        done
        echo
fi

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux