Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Dirk Eibach | 042f9f1 | 2011-10-31 09:39:12 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2011 |
Mario Six | d38826a | 2018-03-06 08:04:58 +0100 | [diff] [blame] | 4 | * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc |
Dirk Eibach | 042f9f1 | 2011-10-31 09:39:12 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Dirk Eibach | 486cad0 | 2011-10-03 23:13:51 +0000 | [diff] [blame] | 7 | #ifndef __PCA9698_H_ |
| 8 | #define __PCA9698_H_ |
| 9 | |
Dirk Eibach | 042f9f1 | 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 | 486cad0 | 2011-10-03 23:13:51 +0000 | [diff] [blame] | 16 | |
| 17 | #endif /* __PCA9698_H_ */ |