git: de73f3d52dc9 - stable/13 - linuxkpi: Add I2C_NAME_SIZE and I2C_MODULE_PREFIX defines

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Wed, 07 Sep 2022 15:10:42 UTC
The branch stable/13 has been updated by manu:

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

commit de73f3d52dc940fd908666b24e168abee23231d0
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-08-16 12:34:20 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-09-07 15:09:06 +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
    
    (cherry picked from commit 7bf65b00c6d3ad2438e1bf40e4e76808a7bf5581)
---
 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 5609c6f775e9..89adcbc6e969 100644
--- a/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
+++ b/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
@@ -69,4 +69,7 @@ struct dmi_system_id {
 #define DMI_MATCH(a, b) { .slot = a, .substr = b }
 #define DMI_EXACT_MATCH(a, b)   { .slot = a, .substr = b, }
 
+#define	I2C_NAME_SIZE		20
+#define	I2C_MODULE_PREFIX	"i2c:"
+
 #endif	/* __LINUXKPI_LINUX_MOD_DEVICETABLE_H__ */