1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * PEF2256 consumer API 4 * 5 * Copyright 2023 CS GROUP France 6 * 7 * Author: Herve Codina <herve.codina@bootlin.com> 8 */ 9 #ifndef __PEF2256_H__ 10 #define __PEF2256_H__ 11 12 #include <linux/types.h> 13 14 struct pef2256; 15 struct regmap; 16 17 /* Retrieve the PEF2256 regmap */ 18 struct regmap *pef2256_get_regmap(struct pef2256 *pef2256); 19 20 /* PEF2256 hardware versions */ 21 enum pef2256_version { 22 PEF2256_VERSION_UNKNOWN, 23 PEF2256_VERSION_1_2, 24 PEF2256_VERSION_2_1, 25 PEF2256_VERSION_2_2, 26 }; 27 28 /* Get the PEF2256 hardware version */ 29 enum pef2256_version pef2256_get_version(struct pef2256 *pef2256); 30 31 #endif /* __PEF2256_H__ */ 32