Jim Wylder | 460453e | 2023-03-07 11:27:54 -0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* |
| 3 | * SW Support for MAX77779 IF-PMIC |
| 4 | * |
| 5 | * Copyright 2023 Google, LLC |
| 6 | */ |
| 7 | #ifndef MAX77779_PMIC |
| 8 | #define MAX77779_PMIC |
| 9 | |
| 10 | #include <linux/device.h> |
Daniel Okazaki | 0dd15c3 | 2023-11-20 23:39:54 +0000 | [diff] [blame] | 11 | |
| 12 | #include "max77779.h" |
| 13 | |
| 14 | struct max77779_pmic_info { |
| 15 | struct device *dev; |
| 16 | struct regmap *regmap; |
Daniel Okazaki | 199f55a | 2024-02-14 22:30:34 +0000 | [diff] [blame] | 17 | struct mutex reg_dump_lock; |
Daniel Okazaki | 0dd15c3 | 2023-11-20 23:39:54 +0000 | [diff] [blame] | 18 | #if IS_ENABLED(CONFIG_DEBUG_FS) |
| 19 | struct dentry *de; |
| 20 | unsigned int addr; |
| 21 | #endif |
| 22 | }; |
Jim Wylder | 460453e | 2023-03-07 11:27:54 -0600 | [diff] [blame] | 23 | |
Daniel Okazaki | 0dd15c3 | 2023-11-20 23:39:54 +0000 | [diff] [blame] | 24 | bool max77779_pmic_is_readable(struct device *dev, unsigned int reg); |
| 25 | int max77779_pmic_init(struct max77779_pmic_info *info); |
| 26 | void max77779_pmic_remove(struct max77779_pmic_info *info); |
Jim Wylder | 460453e | 2023-03-07 11:27:54 -0600 | [diff] [blame] | 27 | #endif |