[U-Boot] [PATCH 07/10] move CPC45 ide_led to the same file as other IDE hooks

Marek Vasut
2012-10-07T18:21:58Z

Dear Pavel Herrmann,

> Keep all IDE-related hooks and overrides in a single file, to avoid
> confusion.
>
> Signed-off-by: Pavel Herrmann <morpheus.ibis@gmail.com>
> ---
[...]

> +
> +void ide_led(uchar led, uchar status)
> +{
> + u_char val;
> + /* We have one PCMCIA slot and use LED H4 for the IDE Interface */
> + val = readb(BCSR_BASE + 0x04);
> + if (status) { /* led on */
> + val |= B_CTRL_LED0;
> + } else {
> + val &= ~B_CTRL_LED0;
> + }

Remove these {} for conditions with single line expression

> + writeb(val, BCSR_BASE + 0x04);
> +}
> +

Best regards,
Marek Vasut