Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2022 09:10:19 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7bf65b00c6d3 - main - linuxkpi: Add I2C_NAME_SIZE and I2C_MODULE_PREFIX defines
Message-ID:  <202208180910.27I9AJSp021982@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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__ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208180910.27I9AJSp021982>