summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drm_linux.c')
-rw-r--r--sys/dev/pci/drm/drm_linux.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_linux.c b/sys/dev/pci/drm/drm_linux.c
index 7cabeac05c5..5a26c246833 100644
--- a/sys/dev/pci/drm/drm_linux.c
+++ b/sys/dev/pci/drm/drm_linux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm_linux.c,v 1.18 2018/01/15 22:24:17 kettenis Exp $ */
+/* $OpenBSD: drm_linux.c,v 1.19 2018/01/30 08:27:17 jsg Exp $ */
/*
* Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org>
* Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org>
@@ -631,6 +631,15 @@ struct i2c_algorithm i2c_bit_algo = {
.functionality = i2c_bb_functionality
};
+int
+i2c_bit_add_bus(struct i2c_adapter *adap)
+{
+ adap->algo = &i2c_bit_algo;
+ adap->retries = 3;
+
+ return 0;
+}
+
#if defined(__amd64__) || defined(__i386__)
/*