git: 7bf65b00c6d3 - main - linuxkpi: Add I2C_NAME_SIZE and I2C_MODULE_PREFIX defines

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Thu, 18 Aug 2022 09:10:19 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=7bf65b00c6d3ad2438e1bf40e4e76808a7bf5581

commit 7bf65b00c6d3ad2438e1bf40e4e76808a7bf5581
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-08-16 12:34:20 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-08-18 07:47:19 +0000

    linuxkpi: Add I2C_NAME_SIZE and I2C_MODULE_PREFIX defines
    
    Both are needed by drm-kmod
    
    Obtained from:  drm-kmod
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  //reviews.freebsd.org/D36212
---
 sys/compat/linuxkpi/common/include/linux/mod_devicetable.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h b/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
index 441faab6df81..804fbb1df198 100644
--- a/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
+++ b/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
@@ -70,4 +70,7 @@ struct dmi_system_id {
 #define DMI_MATCH(a, b) { .slot = a, .substr = b }
 #define DMI_EXACT_MATCH(a, b)   { .slot = a, .substr = b, .exact_match = 1 }
 
+#define	I2C_NAME_SIZE		20
+#define	I2C_MODULE_PREFIX	"i2c:"
+
 #endif	/* __LINUXKPI_LINUX_MOD_DEVICETABLE_H__ */