mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
49b435908b
Move struct rt5033_battery from the mfd header into the battery driver because it's not used by others. Within struct rt5033_battery, remove the line "struct rt5033_dev *rt5033;" because it doesn't get used. In rt5033.h, remove #include <linux/power_supply.h>, it's not necessary anymore. In rt5033_battery.c, remove #include <linux/mfd/rt5033.h>, it's not necessary anymore either. Instead add #include <linux/regmap.h> and Signed-off-by: Jakob Hauser <jahau@rocketmail.com> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/736e1cbee257853cb3d1da6f05c184e9a053263b.1684182964.git.jahau@rocketmail.com
35 lines
598 B
C
35 lines
598 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* MFD core driver for the RT5033
|
|
*
|
|
* Copyright (C) 2014 Samsung Electronics
|
|
* Author: Beomho Seo <beomho.seo@samsung.com>
|
|
*/
|
|
|
|
#ifndef __RT5033_H__
|
|
#define __RT5033_H__
|
|
|
|
#include <linux/regulator/consumer.h>
|
|
#include <linux/i2c.h>
|
|
#include <linux/regmap.h>
|
|
|
|
/* RT5033 regulator IDs */
|
|
enum rt5033_regulators {
|
|
RT5033_BUCK = 0,
|
|
RT5033_LDO,
|
|
RT5033_SAFE_LDO,
|
|
|
|
RT5033_REGULATOR_NUM,
|
|
};
|
|
|
|
struct rt5033_dev {
|
|
struct device *dev;
|
|
|
|
struct regmap *regmap;
|
|
struct regmap_irq_chip_data *irq_data;
|
|
int irq;
|
|
bool wakeup;
|
|
};
|
|
|
|
#endif /* __RT5033_H__ */
|