On Sun, 10 Sep 2017 11:44:46 +0200
Linus Walleij <[email protected]> wrote:

> After finding out there are active users of this sensor I noticed:

I would like to point out that I'm doing this for learning purposes and that I
don't have any pressing needs for this driver to work. But of course I'm really
grateful for all the replays!

> Cc: [email protected]
> Cc: Marco Franchi <[email protected]>
> Cc: Davide Hug <[email protected]>
> Cc: Jonathan Cameron <[email protected]>
> Signed-off-by: Linus Walleij <[email protected]>
> ---
> ChangeLog v1->v2:
> - Fix the return value from devm_gpiod_get() with PTR_ERR()
>   so we defer etc correctly.
> 
> ARM SoC folks: please ACK this so the HWMON maintainer can merge
> it when it is in reasonable shape.
> 
> Marco: can you test this patch with your setup?
> 
> Davide: can you test this patch with your setup?

I tested it and I can make it work (as the current driver) by modifying gpiolib
to not test for the FLAG_USED_AS_IRQ in _gpiod_direction_output_raw.
Otherwise again I get:

        gpio-48 (SHT15 data): _gpiod_direction_output_raw: tried to set a GPIO 
tied to an IRQ as output

as with the current driver. But I guess this is as expected.
(I did this on a beaglebone black with kernel 4.9.10. I'll compile a newer
kernel and try it there to.)

Thanks!
Davide
--
To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to