Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux Fill in i2c_bit_add_bus.
details: https://anonhg.NetBSD.org/src/rev/40147c3b6cad
branches: trunk
changeset: 330976:40147c3b6cad
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 26 06:26:39 2014 +0000
description:
Fill in i2c_bit_add_bus.
diffstat:
sys/external/bsd/drm2/include/linux/i2c-algo-bit.h | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diffs (42 lines):
diff -r a2bddad8650d -r 40147c3b6cad sys/external/bsd/drm2/include/linux/i2c-algo-bit.h
--- a/sys/external/bsd/drm2/include/linux/i2c-algo-bit.h Sat Jul 26 06:20:25 2014 +0000
+++ b/sys/external/bsd/drm2/include/linux/i2c-algo-bit.h Sat Jul 26 06:26:39 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i2c-algo-bit.h,v 1.3 2014/07/16 20:59:58 riastradh Exp $ */
+/* $NetBSD: i2c-algo-bit.h,v 1.4 2014/07/26 06:26:39 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#ifndef _LINUX_I2C_ALGO_BIT_H_
#define _LINUX_I2C_ALGO_BIT_H_
-struct i2c_adapter;
+#include <linux/i2c.h>
struct i2c_algo_bit_data {
void *data;
@@ -46,15 +46,17 @@
int timeout;
};
-static inline int
-i2c_bit_add_bus(struct i2c_adapter *adapter __unused)
-{
- return 0;
-}
-
/* XXX Make the nm output a little more greppable... */
#define i2c_bit_algo linux_i2c_bit_algo
extern const struct i2c_algorithm i2c_bit_algo;
+static inline int
+i2c_bit_add_bus(struct i2c_adapter *adapter)
+{
+
+ adapter->algo = &i2c_bit_algo;
+ return 0;
+}
+
#endif /* _LINUX_I2C_ALGO_BIT_H_ */
Home |
Main Index |
Thread Index |
Old Index