1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Instantiate UCSI device for Cypress CCGx Type-C controller.
4 * Derived from i2c-designware-pcidrv.c and i2c-nvidia-gpu.c.
8 #include <linux/export.h>
9 #include <linux/module.h>
10 #include <linux/string.h>
12 #include "i2c-ccgx-ucsi.h"
16 struct i2c_client
*i2c_new_ccgx_ucsi(struct i2c_adapter
*adapter
, int irq
,
17 const struct software_node
*swnode
)
19 struct i2c_board_info info
= {};
21 strscpy(info
.type
, "ccgx-ucsi", sizeof(info
.type
));
26 return i2c_new_client_device(adapter
, &info
);
28 EXPORT_SYMBOL_GPL(i2c_new_ccgx_ucsi
);
30 MODULE_DESCRIPTION("Instantiate UCSI device for Cypress CCGx Type-C controller");
31 MODULE_LICENSE("GPL");