mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Currently the device is powered down in the remove callback, however all other clean up is done through devres. The problem here is the MFD children are cleaned up through devres. As this happens after the remove callback has run, this leads to the incorrect ordering where the child remove functions run after the device has been powered down. Put the power down into devres as well such that everything runs in the expected order. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20241205115822.2371719-4-ckeepax@opensource.cirrus.com Signed-off-by: Lee Jones <lee@kernel.org>
29 lines
782 B
C
29 lines
782 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* CS42L43 core driver internal data
|
|
*
|
|
* Copyright (C) 2022-2023 Cirrus Logic, Inc. and
|
|
* Cirrus Logic International Semiconductor Ltd.
|
|
*/
|
|
|
|
#ifndef CS42L43_CORE_INT_H
|
|
#define CS42L43_CORE_INT_H
|
|
|
|
#define CS42L43_N_DEFAULTS 176
|
|
|
|
struct dev_pm_ops;
|
|
struct device;
|
|
struct reg_default;
|
|
|
|
struct cs42l43;
|
|
|
|
extern const struct dev_pm_ops cs42l43_pm_ops;
|
|
extern const struct reg_default cs42l43_reg_default[CS42L43_N_DEFAULTS];
|
|
|
|
bool cs42l43_readable_register(struct device *dev, unsigned int reg);
|
|
bool cs42l43_precious_register(struct device *dev, unsigned int reg);
|
|
bool cs42l43_volatile_register(struct device *dev, unsigned int reg);
|
|
|
|
int cs42l43_dev_probe(struct cs42l43 *cs42l43);
|
|
|
|
#endif /* CS42L43_CORE_INT_H */
|