| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: i2c.h,v 1.6 2014/08/23 08:03:33 riastradh Exp $ */ | | 1 | /* $NetBSD: i2c.h,v 1.7 2015/03/05 15:02:36 riastradh Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2013 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2013 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Taylor R. Campbell. | | 8 | * by Taylor R. Campbell. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -79,27 +79,27 @@ i2c_del_driver(const struct i2c_driver * | | | @@ -79,27 +79,27 @@ i2c_del_driver(const struct i2c_driver * |
79 | } | | 79 | } |
80 | | | 80 | |
81 | struct i2c_client; | | 81 | struct i2c_client; |
82 | | | 82 | |
83 | struct i2c_adapter { | | 83 | struct i2c_adapter { |
84 | char name[I2C_NAME_SIZE]; | | 84 | char name[I2C_NAME_SIZE]; |
85 | const struct i2c_algorithm *algo; | | 85 | const struct i2c_algorithm *algo; |
86 | void *algo_data; | | 86 | void *algo_data; |
87 | int retries; | | 87 | int retries; |
88 | struct module *owner; | | 88 | struct module *owner; |
89 | unsigned int class; | | 89 | unsigned int class; |
90 | struct { | | 90 | struct { |
91 | device_t parent; | | 91 | device_t parent; |
92 | } dev; /* XXX Kludge for intel_dp. */ | | 92 | } dev; |
93 | void *i2ca_adapdata; | | 93 | void *i2ca_adapdata; |
94 | }; | | 94 | }; |
95 | | | 95 | |
96 | static inline int | | 96 | static inline int |
97 | i2c_add_adapter(struct i2c_adapter *adapter __unused) | | 97 | i2c_add_adapter(struct i2c_adapter *adapter __unused) |
98 | { | | 98 | { |
99 | return 0; | | 99 | return 0; |
100 | } | | 100 | } |
101 | | | 101 | |
102 | static inline void | | 102 | static inline void |
103 | i2c_del_adapter(struct i2c_adapter *adapter __unused) | | 103 | i2c_del_adapter(struct i2c_adapter *adapter __unused) |
104 | { | | 104 | { |
105 | } | | 105 | } |