diff options
| author | André Draszik <andre.draszik@linaro.org> | 2025-04-09 21:37:28 +0100 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2025-05-23 08:48:22 +0100 |
| commit | 8b88b5e4d58151d8a37250afc978f253cd8cc4fb (patch) | |
| tree | 82476ae1cf45e0c50cba796921a86bd0d4d3fff8 /drivers/mfd | |
| parent | 5bef1b7f10a81b61863f11aaa146a773cbc64e61 (diff) | |
| download | linux-8b88b5e4d58151d8a37250afc978f253cd8cc4fb.tar.gz linux-8b88b5e4d58151d8a37250afc978f253cd8cc4fb.tar.bz2 linux-8b88b5e4d58151d8a37250afc978f253cd8cc4fb.zip | |
mfd: sec: Move private internal API to internal header
sec_irq_init() is an internal API for the core driver, and doesn't
belong into the public header.
Due to an upcoming split of the driver into a core and i2c driver,
we'll also be adding more internal APIs, which again shouldn't be in
the public header.
Move it into a new internal include.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-7-d66d5f39b6bf@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd')
| -rw-r--r-- | drivers/mfd/sec-core.c | 1 | ||||
| -rw-r--r-- | drivers/mfd/sec-core.h | 15 | ||||
| -rw-r--r-- | drivers/mfd/sec-irq.c | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index b12020c416aa..83693686567d 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -23,6 +23,7 @@ #include <linux/pm.h> #include <linux/pm_runtime.h> #include <linux/regmap.h> +#include "sec-core.h" static const struct mfd_cell s5m8767_devs[] = { { .name = "s5m8767-pmic", }, diff --git a/drivers/mfd/sec-core.h b/drivers/mfd/sec-core.h new file mode 100644 index 000000000000..b3fded5f02a0 --- /dev/null +++ b/drivers/mfd/sec-core.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * http://www.samsung.com + * Copyright 2025 Linaro Ltd. + * + * Samsung SxM core driver internal data + */ + +#ifndef __SEC_CORE_INT_H +#define __SEC_CORE_INT_H + +int sec_irq_init(struct sec_pmic_dev *sec_pmic); + +#endif /* __SEC_CORE_INT_H */ diff --git a/drivers/mfd/sec-irq.c b/drivers/mfd/sec-irq.c index 3ed2902c3a26..4d49bb42bd0d 100644 --- a/drivers/mfd/sec-irq.c +++ b/drivers/mfd/sec-irq.c @@ -18,6 +18,7 @@ #include <linux/mfd/samsung/s5m8767.h> #include <linux/module.h> #include <linux/regmap.h> +#include "sec-core.h" static const struct regmap_irq s2mps11_irqs[] = { [S2MPS11_IRQ_PWRONF] = { |
