module_i2c_driver
Prev | Chapter 10. I2C and SMBus Subsystem | Next

## Name

module_i2c_driver — Helper macro for registering a I2C driver

## Synopsis

`module_i2c_driver (` | __i2c_driver`)`;

## Arguments

`__i2c_driver`

  i2c_driver struct

## Description

Helper macro for I2C drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces `module_init` and `module_exit`

Prev | Up | Next
struct i2c_bus_recovery_info | Home | i2c_register_board_info