Re: [PATCH 2/7 v1] spi: ath79: Convert to use CS GPIO descriptors

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

 



On Mon, Dec 17, 2018 at 12:35 PM Jonathan Cameron
<jonathan.cameron@xxxxxxxxxx> wrote:

> > -     } else {
> > +     if (!spi->cs_gpiod) {
>
> It would obviously not be a minimal change, but the resulting code
> would be slightly nicer if you were to flip this to exit quickly in
> the case where we do have descriptors.
>
> u32 cs_bit;
>
> if (spi->cs_gpiod)
>         return 0;
>
> cs_bit = ...
>
> return 0;

Hm I bet we can do that as a separate cleanup if this is even still
there after all the cleanups spotted by Alban.

Yours,
Linus Walleij



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux