lkml.org 
[lkml]   [2016]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RESEND 07/11] pwm: sti: Initialise PWM Capture channel data
    On Tue, 12 Apr 2016, Thierry Reding wrote:

    > On Wed, Mar 02, 2016 at 03:32:05PM +0000, Lee Jones wrote:
    > [...]
    > > +struct sti_cpt_data {
    > > + u32 snapshot[3];
    > > + int index;
    > > + int gpio;
    >
    > On a side-note, this should probably use struct gpio_desc * instead of
    > an integer along with the gpiod_*() APIs for the GPIO handling.

    Why would you need to do that?

    of_get_named_gpio() does all that for you.

    --
    Lee Jones
    Linaro STMicroelectronics Landing Team Lead
    Linaro.org │ Open source software for ARM SoCs
    Follow Linaro: Facebook | Twitter | Blog

    \
     
     \ /
      Last update: 2016-04-15 15:01    [W:3.193 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site