Re: [Question] How to implement GPIO driver for sparse hw numbers?

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

 



On Fri, Jun 19, 2015 at 5:27 AM, Masahiro Yamada
<yamada.masahiro@xxxxxxxxxxxxx> wrote:

> In my understanding, the GPIO driver framework requires that
> the hw numbers should be contiguous within each GPIO chip.

Yes but noone says that .request() to the driver has to succeed
on every GPIO so just cover all GPIOs from 0 to 307 with
your GPIO chip and then implement your "holes" in the GPIO
range from 0 to 307 by letting .request() fail.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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