mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 05:36:47 +07:00
61b305cd2a
This prepares for merging some of the drivers between max77693 and max77843 so the child MFD driver can be attached to any parent MFD main driver. Move the state container to common header file. Additionally add consistent 'i2c' prefixes to its members (of 'struct i2c_client' type). Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Acked-by: Sebastian Reichel <sre@kernel.org> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: Lee Jones <lee.jones@linaro.org> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org>
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/*
|
|
* Common data shared between Maxim 77693 and 77843 drivers
|
|
*
|
|
* Copyright (C) 2015 Samsung Electronics
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef __LINUX_MFD_MAX77693_COMMON_H
|
|
#define __LINUX_MFD_MAX77693_COMMON_H
|
|
|
|
enum max77693_types {
|
|
TYPE_MAX77693_UNKNOWN,
|
|
TYPE_MAX77693,
|
|
};
|
|
|
|
/*
|
|
* Shared also with max77843.
|
|
*/
|
|
struct max77693_dev {
|
|
struct device *dev;
|
|
struct i2c_client *i2c; /* 0xCC , PMIC, Charger, Flash LED */
|
|
struct i2c_client *i2c_muic; /* 0x4A , MUIC */
|
|
struct i2c_client *i2c_haptic; /* MAX77693: 0x90 , Haptic */
|
|
|
|
enum max77693_types type;
|
|
|
|
struct regmap *regmap;
|
|
struct regmap *regmap_muic;
|
|
struct regmap *regmap_haptic; /* Only MAX77693 */
|
|
|
|
struct regmap_irq_chip_data *irq_data_led;
|
|
struct regmap_irq_chip_data *irq_data_topsys;
|
|
struct regmap_irq_chip_data *irq_data_chg; /* Only MAX77693 */
|
|
struct regmap_irq_chip_data *irq_data_muic;
|
|
|
|
int irq;
|
|
};
|
|
|
|
|
|
#endif /* __LINUX_MFD_MAX77693_COMMON_H */
|