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

Now that sec-i2c doesn't match device type by pointer casting anymore, we can switch the device type from unsigned long to int easily. This saves a few bytes in struct sec_pmic_dev due to member alignment. Signed-off-by: André Draszik <andre.draszik@linaro.org> Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-18-d66d5f39b6bf@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
23 lines
585 B
C
23 lines
585 B
C
/* 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
|
|
|
|
struct i2c_client;
|
|
|
|
extern const struct dev_pm_ops sec_pmic_pm_ops;
|
|
|
|
int sec_pmic_probe(struct device *dev, int device_type, unsigned int irq,
|
|
struct regmap *regmap, struct i2c_client *client);
|
|
void sec_pmic_shutdown(struct device *dev);
|
|
|
|
int sec_irq_init(struct sec_pmic_dev *sec_pmic);
|
|
|
|
#endif /* __SEC_CORE_INT_H */
|