mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 05:45:20 +00:00
69ab71bdd3
make allmodconfig && make W=1 C=1 reports: WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/i2c/busses/i2c-ccgx-ucsi.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/i2c/busses/i2c-ali1563.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/i2c/busses/i2c-pxa.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/i2c/busses/i2c-qup.o Add the missing invocations of the MODULE_DESCRIPTION() macro. Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
32 lines
794 B
C
32 lines
794 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Instantiate UCSI device for Cypress CCGx Type-C controller.
|
|
* Derived from i2c-designware-pcidrv.c and i2c-nvidia-gpu.c.
|
|
*/
|
|
|
|
#include <linux/i2c.h>
|
|
#include <linux/export.h>
|
|
#include <linux/module.h>
|
|
#include <linux/string.h>
|
|
|
|
#include "i2c-ccgx-ucsi.h"
|
|
|
|
struct software_node;
|
|
|
|
struct i2c_client *i2c_new_ccgx_ucsi(struct i2c_adapter *adapter, int irq,
|
|
const struct software_node *swnode)
|
|
{
|
|
struct i2c_board_info info = {};
|
|
|
|
strscpy(info.type, "ccgx-ucsi", sizeof(info.type));
|
|
info.addr = 0x08;
|
|
info.irq = irq;
|
|
info.swnode = swnode;
|
|
|
|
return i2c_new_client_device(adapter, &info);
|
|
}
|
|
EXPORT_SYMBOL_GPL(i2c_new_ccgx_ucsi);
|
|
|
|
MODULE_DESCRIPTION("Instantiate UCSI device for Cypress CCGx Type-C controller");
|
|
MODULE_LICENSE("GPL");
|