mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Add #if (NSMBUS>0) checks around smbus/iicbus i2c bus code.
This commit is contained in:
parent
f77f865c0f
commit
2a3fb485f9
2 changed files with 14 additions and 8 deletions
|
|
@ -23,7 +23,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: bt848_i2c.c,v 1.2 1998/11/07 14:30:48 nsouch Exp $
|
||||
* $Id: bt848_i2c.c,v 1.3 1999/05/08 21:59:38 dfr Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -33,6 +33,12 @@
|
|||
* From brooktree848.c <fsmp@freefall.org>
|
||||
*/
|
||||
|
||||
#include "pci.h"
|
||||
#include "bktr.h"
|
||||
#include "smbus.h"
|
||||
|
||||
#if (NBKTR > 0 && NPCI > 0 && NSMBUS > 0)
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
@ -61,10 +67,7 @@
|
|||
#include "iicbb_if.h"
|
||||
#include "smbus_if.h"
|
||||
|
||||
#include "pci.h"
|
||||
#include "bktr.h"
|
||||
|
||||
#if (NBKTR > 0 && NPCI > 0)
|
||||
|
||||
#define I2C_DELAY 40
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: bt848_i2c.c,v 1.2 1998/11/07 14:30:48 nsouch Exp $
|
||||
* $Id: bt848_i2c.c,v 1.3 1999/05/08 21:59:38 dfr Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -33,6 +33,12 @@
|
|||
* From brooktree848.c <fsmp@freefall.org>
|
||||
*/
|
||||
|
||||
#include "pci.h"
|
||||
#include "bktr.h"
|
||||
#include "smbus.h"
|
||||
|
||||
#if (NBKTR > 0 && NPCI > 0 && NSMBUS > 0)
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
@ -61,10 +67,7 @@
|
|||
#include "iicbb_if.h"
|
||||
#include "smbus_if.h"
|
||||
|
||||
#include "pci.h"
|
||||
#include "bktr.h"
|
||||
|
||||
#if (NBKTR > 0 && NPCI > 0)
|
||||
|
||||
#define I2C_DELAY 40
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue