-/* $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>
.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__)
/*
-/* $OpenBSD: drm_linux.h,v 1.68 2018/01/30 08:25:06 jsg Exp $ */
+/* $OpenBSD: drm_linux.h,v 1.69 2018/01/30 08:27:17 jsg Exp $ */
/*
* Copyright (c) 2013, 2014, 2015 Mark Kettenis
* Copyright (c) 2017 Martin Pieuchot
adap->data = data;
}
+int i2c_bit_add_bus(struct i2c_adapter *);
+
#define memcpy_toio(d, s, n) memcpy(d, s, n)
#define memcpy_fromio(d, s, n) memcpy(d, s, n)
#define memset_io(d, b, n) memset(d, b, n)