Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] I2C: Kill i2c_algorithm.id (7/7)

The I2C_ALGO_* constants have no more users, delete them. Also update
the comments in i2c-id.h so that they reflect the current state of the
file.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Jean Delvare and committed by
Greg Kroah-Hartman
c2459cf2 1684a984

+1 -56
+1 -56
include/linux/i2c-id.h
··· 1 1 /* ------------------------------------------------------------------------- */ 2 2 /* */ 3 - /* i2c.h - definitions for the i2c-bus interface */ 3 + /* i2c-id.h - identifier values for i2c drivers and adapters */ 4 4 /* */ 5 5 /* ------------------------------------------------------------------------- */ 6 6 /* Copyright (C) 1995-1999 Simon G. Vogl ··· 22 22 23 23 #ifndef LINUX_I2C_ID_H 24 24 #define LINUX_I2C_ID_H 25 - 26 - /* 27 - * This file is part of the i2c-bus package and contains the identifier 28 - * values for drivers, adapters and other folk populating these serial 29 - * worlds. 30 - * 31 - * These will change often (i.e. additions) , therefore this has been 32 - * separated from the functional interface definitions of the i2c api. 33 - * 34 - */ 35 25 36 26 /* 37 27 * ---- Driver types ----------------------------------------------------- ··· 160 170 161 171 /* 162 172 * ---- Adapter types ---------------------------------------------------- 163 - * 164 - * First, we distinguish between several algorithms to access the hardware 165 - * interface types, as a PCF 8584 needs other care than a bit adapter. 166 - */ 167 - 168 - #define I2C_ALGO_NONE 0x000000 169 - #define I2C_ALGO_BIT 0x010000 /* bit style adapters */ 170 - #define I2C_ALGO_PCF 0x020000 /* PCF 8584 style adapters */ 171 - #define I2C_ALGO_ATI 0x030000 /* ATI video card */ 172 - #define I2C_ALGO_SMBUS 0x040000 173 - #define I2C_ALGO_ISA 0x050000 /* lm_sensors ISA pseudo-adapter */ 174 - #define I2C_ALGO_SAA7146 0x060000 /* SAA 7146 video decoder bus */ 175 - #define I2C_ALGO_ACB 0x070000 /* ACCESS.bus algorithm */ 176 - #define I2C_ALGO_IIC 0x080000 /* ITE IIC bus */ 177 - #define I2C_ALGO_SAA7134 0x090000 178 - #define I2C_ALGO_MPC824X 0x0a0000 /* Motorola 8240 / 8245 */ 179 - #define I2C_ALGO_IPMI 0x0b0000 /* IPMI dummy adapter */ 180 - #define I2C_ALGO_IPMB 0x0c0000 /* IPMB adapter */ 181 - #define I2C_ALGO_MPC107 0x0d0000 182 - #define I2C_ALGO_EC 0x100000 /* ACPI embedded controller */ 183 - 184 - #define I2C_ALGO_MPC8XX 0x110000 /* MPC8xx PowerPC I2C algorithm */ 185 - #define I2C_ALGO_OCP 0x120000 /* IBM or otherwise On-chip I2C algorithm */ 186 - #define I2C_ALGO_BITHS 0x130000 /* enhanced bit style adapters */ 187 - #define I2C_ALGO_IOP3XX 0x140000 /* XSCALE IOP3XX On-chip I2C alg */ 188 - #define I2C_ALGO_SIBYTE 0x150000 /* Broadcom SiByte SOCs */ 189 - #define I2C_ALGO_SGI 0x160000 /* SGI algorithm */ 190 - 191 - #define I2C_ALGO_USB 0x170000 /* USB algorithm */ 192 - #define I2C_ALGO_VIRT 0x180000 /* Virtual bus adapter */ 193 - 194 - #define I2C_ALGO_MV64XXX 0x190000 /* Marvell mv64xxx i2c ctlr */ 195 - #define I2C_ALGO_PCA 0x1a0000 /* PCA 9564 style adapters */ 196 - #define I2C_ALGO_AU1550 0x1b0000 /* Au1550 PSC algorithm */ 197 - 198 - #define I2C_ALGO_EXP 0x800000 /* experimental */ 199 - 200 - #define I2C_ALGO_MASK 0xff0000 /* Mask for algorithms */ 201 - #define I2C_ALGO_SHIFT 0x10 /* right shift to get index values */ 202 - 203 - #define I2C_HW_ADAPS 0x10000 /* # adapter types */ 204 - #define I2C_HW_MASK 0xffff 205 - 206 - 207 - /* hw specific modules that are defined per algorithm layer 208 173 */ 209 174 210 175 /* --- Bit algorithm adapters */