| 159 | | /* Next: define SMBus variants of registering. Very boring. To make it possible |
| 160 | | to change these definitions in the future without recompiling all modules, |
| 161 | | we do not define them as inline. */ |
| 162 | | int smbus_add_algorithm(struct smbus_algorithm *algorithm) |
| 163 | | { |
| 164 | | return i2c_add_algorithm( (struct i2c_algorithm *) algorithm); |
| 165 | | } |
| 166 | | |
| 167 | | int smbus_del_algorithm(struct smbus_algorithm *algorithm) |
| 168 | | { |
| 169 | | return i2c_del_algorithm( (struct i2c_algorithm *) algorithm); |
| 170 | | } |
| 171 | | |
| 172 | | int smbus_add_adapter(struct smbus_adapter *adapter) |
| 173 | | { |
| 174 | | return i2c_add_adapter( (struct i2c_adapter *) adapter); |
| 175 | | } |
| 176 | | |
| 177 | | int smbus_del_adapter(struct smbus_adapter *adapter) |
| 178 | | { |
| 179 | | return i2c_del_adapter( (struct i2c_adapter *) adapter); |
| 180 | | } |
| 181 | | |
| 182 | | int smbus_add_driver(struct smbus_driver *driver) |
| 183 | | { |
| 184 | | return i2c_add_driver( (struct i2c_driver *) driver); |
| 185 | | } |
| 186 | | |
| 187 | | int smbus_del_driver(struct smbus_driver *driver) |
| 188 | | { |
| 189 | | return i2c_del_driver( (struct i2c_driver *) driver); |
| 190 | | } |
| 191 | | |
| 192 | | int smbus_attach_client(struct smbus_client *client) |
| 193 | | { |
| 194 | | return i2c_attach_client( (struct i2c_client *) client); |
| 195 | | } |
| 196 | | |
| 197 | | int smbus_detach_client(struct smbus_client *client) |
| 198 | | { |
| 199 | | return i2c_detach_client( (struct i2c_client *) client); |
| 200 | | } |
| 201 | | |