Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Dirk Eibach | bae3a22 | 2011-10-31 09:39:12 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2011 |
Mario Six | b489358 | 2018-03-06 08:04:58 +0100 | [diff] [blame] | 4 | * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc |
Dirk Eibach | bae3a22 | 2011-10-31 09:39:12 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Dirk Eibach | c3213b8 | 2011-10-03 23:13:51 +0000 | [diff] [blame] | 7 | #ifndef __PCA9698_H_ |
| 8 | #define __PCA9698_H_ |
| 9 | |
Dirk Eibach | bae3a22 | 2011-10-31 09:39:12 +0100 | [diff] [blame] | 10 | int pca9698_request(unsigned gpio, const char *label); |
| 11 | void pca9698_free(unsigned gpio); |
| 12 | int pca9698_direction_input(u8 addr, unsigned gpio); |
| 13 | int pca9698_direction_output(u8 addr, unsigned gpio, int value); |
| 14 | int pca9698_get_value(u8 addr, unsigned gpio); |
| 15 | int pca9698_set_value(u8 addr, unsigned gpio, int value); |
Dirk Eibach | c3213b8 | 2011-10-03 23:13:51 +0000 | [diff] [blame] | 16 | |
| 17 | #endif /* __PCA9698_H_ */ |