mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-04 12:54:37 +08:00
a2c34bfd2c
Using managed device resources means there's nothing left to be done in pasemi_smb_pci_remove and also allows to remove base and size from struct pasemi_smbus. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sven Peter <sven@svenpeter.dev> Acked-by: Olof Johansson <olof@lixom.net> Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
19 lines
424 B
C
19 lines
424 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#include <linux/atomic.h>
|
|
#include <linux/clk.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/device.h>
|
|
#include <linux/i2c.h>
|
|
#include <linux/i2c-smbus.h>
|
|
#include <linux/io.h>
|
|
#include <linux/kernel.h>
|
|
|
|
struct pasemi_smbus {
|
|
struct device *dev;
|
|
struct i2c_adapter adapter;
|
|
void __iomem *ioaddr;
|
|
unsigned int clk_div;
|
|
};
|
|
|
|
int pasemi_i2c_common_probe(struct pasemi_smbus *smbus);
|