All of lore.kernel.org
 help / color / mirror / Atom feed
* [BK PATCH] More i2c driver changes for 2.5.65
@ 2005-05-19  6:23 ` Greg KH
  0 siblings, 0 replies; 92+ messages in thread
From: Greg KH @ 2003-03-22  1:04 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, sensors

Hi,

Here are some more i2c driver changes for 2.5.65.  These include changes
that now hook up the i2c devices to the driver core.  This results in a
sysfs tree that looks like the following on one of my boxes:

/sys/bus/i2c/
|-- devices
|   `-- i2c_dev_0 -> ../../../devices/pci0/00:1f.3/i2c-0/i2c_dev_0
`-- drivers
    `-- LM75 sensor
        `-- i2c_dev_0 -> ../../../../devices/pci0/00:1f.3/i2c-0/i2c_dev_0


Now the fun work of starting to rip out the i2c sysctl and proc code can
begin :)

These changesets also include the patch from Petr Vandrovec that fixes
an oops on booting with i2c built into the kernel, and some more minor
cleanups to some of the i2c core code.

I'll try to post a document later this weekend on lkml and
kernel-janitors-discuss that explains how the i2c drivers will need to
be converted, and how people can help out now that the infrastructure is
finished.

Please pull from:  bk://kernel.bkbits.net/gregkh/linux/i2c-2.5

thanks,

greg k-h

 drivers/i2c/busses/i2c-ali15x3.c |    8 +
 drivers/i2c/busses/i2c-amd756.c  |    6 -
 drivers/i2c/busses/i2c-amd8111.c |    4 
 drivers/i2c/busses/i2c-i801.c    |    8 +
 drivers/i2c/busses/i2c-isa.c     |    4 
 drivers/i2c/busses/i2c-piix4.c   |    8 +
 drivers/i2c/chips/adm1021.c      |   21 ++--
 drivers/i2c/chips/lm75.c         |   14 +--
 drivers/i2c/i2c-algo-bit.c       |   13 +-
 drivers/i2c/i2c-algo-pcf.c       |   19 +---
 drivers/i2c/i2c-core.c           |   99 ++++++++++-----------
 drivers/i2c/i2c-dev.c            |   21 ++--
 drivers/i2c/i2c-elektor.c        |   10 +-
 drivers/i2c/i2c-elv.c            |    6 -
 drivers/i2c/i2c-philips-par.c    |    4 
 drivers/i2c/i2c-proc.c           |  180 ++++++++++-----------------------------
 drivers/i2c/i2c-velleman.c       |    4 
 drivers/i2c/scx200_acb.c         |   32 +++---
 include/linux/i2c.h              |   33 ++++---
 19 files changed, 218 insertions(+), 276 deletions(-)

-----
Short log:
-----

Greg Kroah-Hartman <greg@kroah.com>:
  o i2c: ugh, clean up lindent mess in i2c-proc.c::i2c_detect()
  o i2c: fix up the chip driver names to play nice with sysfs
  o i2c: actually register the i2c client device with the driver core
  o i2c: Removed the name variable from i2c_client as the dev one should be used instead
  o i2c: remove the data field from struct i2c_client
  o i2c: add struct device to i2c_client structure
  o i2c: remove *data from i2c_adapter, as dev->data should be used instead
  o i2c: remove i2c_adapter->name and use dev->name instead

Petr Vandrovec <vandrove@vc.cvut.cz>:
  o Fix kobject_get oopses triggered by i2c in 2.5.65-bk

-----
Long log:
-----

ChangeSet@1.1196, 2003-03-21 16:45:59-08:00, greg@kroah.com
  i2c: ugh, clean up lindent mess in i2c-proc.c::i2c_detect()
  
  Yes, this function now goes beyond 80 columns, but it's almost 
  readable, while the previous version was not.
  
  Also removed some #ifdefs

 drivers/i2c/i2c-proc.c |  180 ++++++++++++-------------------------------------
 1 files changed, 47 insertions(+), 133 deletions(-)
------

ChangeSet@1.1195, 2003-03-21 16:39:04-08:00, greg@kroah.com
  [PATCH] i2c: fix up the chip driver names to play nice with sysfs

 drivers/i2c/chips/adm1021.c |    2 +-
 drivers/i2c/chips/lm75.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
------

ChangeSet@1.1194, 2003-03-21 16:26:04-08:00, greg@kroah.com
  i2c: actually register the i2c client device with the driver core.
  
  We have to initialize the client structure with 0 to keep the
  driver core from oopsing.
  
  Now everything is hooked up enough to start removing the i2c sysctl
  and proc crud.

 drivers/i2c/chips/adm1021.c |    2 ++
 drivers/i2c/chips/lm75.c    |    2 ++
 drivers/i2c/i2c-core.c      |   10 ++++++++++
 3 files changed, 14 insertions(+)
------

ChangeSet@1.1193, 2003-03-21 16:16:01-08:00, greg@kroah.com
  i2c: Removed the name variable from i2c_client as the dev one should be used instead.

 drivers/i2c/chips/adm1021.c |    2 +-
 drivers/i2c/chips/lm75.c    |    2 +-
 drivers/i2c/i2c-core.c      |   14 +++++++-------
 drivers/i2c/i2c-dev.c       |    4 +++-
 include/linux/i2c.h         |    1 -
 5 files changed, 12 insertions(+), 11 deletions(-)
------

ChangeSet@1.1192, 2003-03-21 16:07:30-08:00, greg@kroah.com
  [PATCH] i2c: remove the data field from struct i2c_client
  
  It's no longer needed, as the struct device should be used instead.
  
  Created i2c_get_clientdata() and i2c_set_clientdata() to access the data.

 drivers/i2c/chips/adm1021.c |   15 +++++++--------
 drivers/i2c/chips/lm75.c    |    8 ++++----
 include/linux/i2c.h         |   11 ++++++++++-
 3 files changed, 21 insertions(+), 13 deletions(-)
------

ChangeSet@1.1191, 2003-03-21 16:00:39-08:00, greg@kroah.com
  i2c: add struct device to i2c_client structure
  
  Not quite ready to hook it up to the driver core yet.

 include/linux/i2c.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
------

ChangeSet@1.1190, 2003-03-21 14:38:21-08:00, greg@kroah.com
  [PATCH] i2c: remove *data from i2c_adapter, as dev->data should be used instead.

 drivers/i2c/i2c-elv.c    |    2 +-
 drivers/i2c/scx200_acb.c |    4 ++--
 include/linux/i2c.h      |   17 +++++++++++------
 3 files changed, 14 insertions(+), 9 deletions(-)
------

ChangeSet@1.1189, 2003-03-21 12:45:28-08:00, greg@kroah.com
  i2c: remove i2c_adapter->name and use dev->name instead.

 drivers/i2c/busses/i2c-ali15x3.c |    8 ++--
 drivers/i2c/busses/i2c-amd756.c  |    6 ++-
 drivers/i2c/busses/i2c-amd8111.c |    4 +-
 drivers/i2c/busses/i2c-i801.c    |    8 ++--
 drivers/i2c/busses/i2c-isa.c     |    4 +-
 drivers/i2c/busses/i2c-piix4.c   |    8 ++--
 drivers/i2c/i2c-algo-bit.c       |   13 +++---
 drivers/i2c/i2c-algo-pcf.c       |   19 ++++------
 drivers/i2c/i2c-core.c           |   73 ++++++++++++++++-----------------------
 drivers/i2c/i2c-dev.c            |   17 +++------
 drivers/i2c/i2c-elektor.c        |   10 +++--
 drivers/i2c/i2c-elv.c            |    4 +-
 drivers/i2c/i2c-philips-par.c    |    4 +-
 drivers/i2c/i2c-velleman.c       |    4 +-
 drivers/i2c/scx200_acb.c         |   28 ++++++--------
 include/linux/i2c.h              |    1 
 16 files changed, 105 insertions(+), 106 deletions(-)
------

ChangeSet@1.1188, 2003-03-21 12:29:44-08:00, vandrove@vc.cvut.cz
  [PATCH] Fix kobject_get oopses triggered by i2c in 2.5.65-bk
  
  i2c initialization must not use module_init now, when it was converted
  to the kobject interface. There are dozens of users which need it working
  much sooner. i2c is subsystem after all, isn't it?
  
  Fixes kernel oopses in kobject_get during system init which were happening
  to me.

Push file://home/greg/linux/BK/i2c-2.5 -> file://home/greg/linux/BK/bleed-2.5
 drivers/i2c/i2c-core.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
------

^ permalink raw reply	[flat|nested] 92+ messages in thread
* [BK PATCH] More i2c driver changes for 2.5.66
@ 2003-04-03  0:14 Greg KH
  2003-04-03  0:15 ` [PATCH] " Greg KH
  0 siblings, 1 reply; 92+ messages in thread
From: Greg KH @ 2003-04-03  0:14 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, sensors

Hi,

Here are some more i2c driver changes for 2.5.66.  It adds two i2c chip
drivers, and converts all of them to the sysfs interface.  In doing so,
I've ripped out all of the old /proc and sysctl mess.  A number of small
bugfixes for some of the media i2c drivers are in here too.

I've also fixed up the bus_id of the i2c client devices, as the current
code can cause duplicate bus_ids which didn't play nice on some systems.

Please pull from:  bk://kernel.bkbits.net/gregkh/linux/i2c-2.5

thanks,

greg k-h

 Documentation/i2c/proc-interface  |   53 -
 drivers/i2c/i2c-proc.c            |  187 ---
 include/linux/i2c-proc.h          |  373 -------
 Documentation/i2c/sysfs-interface |  177 +++
 drivers/i2c/Kconfig               |   11 
 drivers/i2c/Makefile              |    2 
 drivers/i2c/busses/Kconfig        |   13 
 drivers/i2c/chips/Kconfig         |   70 +
 drivers/i2c/chips/Makefile        |    2 
 drivers/i2c/chips/adm1021.c       |  360 +++----
 drivers/i2c/chips/lm75.c          |  187 +--
 drivers/i2c/chips/via686a.c       | 1010 +++++++++++++++++++-
 drivers/i2c/chips/w83781d.c       | 1892 +++++++++++++++++++++++++++++++++++++-
 drivers/i2c/i2c-core.c            |  190 ---
 drivers/i2c/i2c-proc.c            |  550 -----------
 drivers/i2c/i2c-sensor.c          |  182 +++
 drivers/media/video/adv7175.c     |    2 
 drivers/media/video/tvmixer.c     |   20 
 include/linux/i2c-proc.h          |   43 
 include/linux/i2c-sensor.h        |  373 +++++++
 include/linux/i2c-vid.h           |   66 +
 21 files changed, 3975 insertions(+), 1788 deletions(-)
-----


<azarah@gentoo.org>:
  o i2c: w83781d i2c driver updated for 2.5.66-bk4 (with sysfs support, empty tree)

<j.dittmer@portrix.net>:
  o i2c: add i2c-via686a driver
  o i2c: fix compile bugs in tvmixer.c

Greg Kroah-Hartman <greg@kroah.com>:
  o i2c: remove old proc documentation and add sysfs file documentation
  o i2c: fix up broken drivers/i2c/busses build due to I2C_PROC now being gone
  o i2c: clean up previous w83781d patch due to changes I made to i2c core and build
  o i2c: remove all proc code from the i2c core, as it's no longer needed
  o i2c: move i2c-proc to i2c-sensor and clean up all usages of it
  o i2c: remove unused paramater in found_proc callback function
  o i2c: remove proc and sysctl code from i2c-proc as it is no longer used
  o i2c: remove sysctl and proc functions from via686a.c driver
  o i2c: convert adm1021 chip driver to use sysfs files
  o i2c: convert lm75 chip driver to use sysfs files
  o i2c: change the way i2c creates the bus ids to actually be unique now
  o i2c: fix memleak caused by my last patch fo the adv7175.c driver


^ permalink raw reply	[flat|nested] 92+ messages in thread
* [BK PATCH] More i2c driver changes for 2.5.69
  2005-05-19  6:23 ` Greg KH
@ 2005-05-19  6:23 ` Greg KH
  -1 siblings, 0 replies; 92+ messages in thread
From: Greg KH @ 2003-05-09 23:55 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, sensors

Hi,

Here are some more minor i2c fixups for 2.5.69.  They are basically a
bunch of fixes for the it87 driver, and a few other minor changes.

Please pull from:  bk://kernel.bkbits.net/gregkh/linux/i2c-2.5

thanks,

greg k-h

 drivers/i2c/chips/it87.c |  195 +++++++++++++++++++++++------------------------
 drivers/i2c/i2c-core.c   |   33 ++++++-
 include/linux/i2c.h      |   13 +--
 3 files changed, 133 insertions(+), 108 deletions(-)
-----

<warp:mercury.d2dc.net>:
  o I2C: And another it87 patch
  o I2C: Yet another it87 patch
  o I2C: Another it87 patch

Greg Kroah-Hartman:
  o i2c: register the i2c_adapter_driver so things link up properly in sysfs
  o i2c: add i2c_adapter class support

Mark W. McClelland:
  o I2C: add more classes


^ permalink raw reply	[flat|nested] 92+ messages in thread
* [BK PATCH] More i2c driver changes for 2.5.70
  2005-05-19  6:23 ` Greg KH
@ 2005-05-19  6:23 ` Greg KH
  -1 siblings, 0 replies; 92+ messages in thread
From: Greg KH @ 2003-06-11 20:35 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, sensors

Hi,

Here are some more i2c driver changes for 2.5.70.  These consist of a new i2c
client driver, a new i2c bus driver, some coding style fixes for the new bus
driver, and a bunch of sparse warning removels.

Please pull from:  bk://kernel.bkbits.net/gregkh/linux/i2c-2.5

thanks,

greg k-h

-----

 drivers/i2c/Kconfig        |    4 
 drivers/i2c/Makefile       |    1 
 drivers/i2c/chips/Kconfig  |   19 
 drivers/i2c/chips/Makefile |    1 
 drivers/i2c/chips/lm85.c   | 1223 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/i2c/i2c-core.c     |   36 -
 drivers/i2c/i2c-dev.c      |   10 
 drivers/i2c/i2c-iop3xx.c   |  868 +++++++++++++++++++++++++------
 drivers/i2c/i2c-iop3xx.h   |  238 ++++++--
 include/linux/i2c-dev.h    |    6 
 include/linux/i2c.h        |    4 
 11 files changed, 2150 insertions(+), 260 deletions(-)
-----

<margitsw:t-online.de>:
  o I2C: add LM85 driver

<peterm:remware.demon.co.uk>:
  o I2C: add New bus driver: XSCALE iop3xx

Greg Kroah-Hartman:
  o I2C: fix up sparse warnings in the i2c-dev driver
  o I2C: fix up sparse warnings in drivers/i2c/i2c-core.c
  o I2C: fix some errors found by sparse in include/linux/i2c.h
  o I2C: coding style updates for i2c-iop3xx driver


^ permalink raw reply	[flat|nested] 92+ messages in thread

end of thread, other threads:[~2005-05-19  6:23 UTC | newest]

Thread overview: 92+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-22  1:04 [BK PATCH] More i2c driver changes for 2.5.65 Greg KH
2005-05-19  6:23 ` Greg KH
2003-03-22  1:04 ` [PATCH] " Greg KH
2005-05-19  6:23   ` Greg KH
2003-03-22  1:04   ` Greg KH
2005-05-19  6:23     ` Greg KH
2003-03-22  1:04     ` Greg KH
2005-05-19  6:23       ` Greg KH
2003-03-22  1:04       ` Greg KH
2005-05-19  6:23         ` Greg KH
2003-03-22  1:04         ` Greg KH
2005-05-19  6:23           ` Greg KH
2003-03-22  1:04           ` Greg KH
2005-05-19  6:23             ` Greg KH
2003-03-22  1:04             ` Greg KH
2005-05-19  6:23               ` Greg KH
2003-03-22  1:04               ` Greg KH
2005-05-19  6:23                 ` Greg KH
2003-03-22  1:04                 ` Greg KH
2005-05-19  6:23                   ` Greg KH
2003-03-25  9:35                 ` Pavel Machek
2005-05-19  6:23                   ` Pavel Machek
2003-03-25  1:29                   ` Greg KH
2005-05-19  6:23                     ` Greg KH
2003-03-25  2:04                     ` Dave Jones
2005-05-19  6:23                       ` Dave Jones
2003-03-25  3:34                       ` Greg KH
2005-05-19  6:23                         ` Greg KH
2005-05-19  6:23         ` [PATCH] More i2c driver changes for 2.5.66 Albert Cranford
2005-05-19  6:23         ` Mark M. Hoffman
2005-05-19  6:23         ` Greg KH
2005-05-19  6:23         ` [PATCH] More i2c driver changes for 2.5.69 Philip Pokorny
2003-03-22  2:33     ` [PATCH] More i2c driver changes for 2.5.65 Petr Vandrovec
2005-05-19  6:23       ` Petr Vandrovec
2003-03-23  8:49       ` Greg KH
2005-05-19  6:23         ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2003-04-03  0:14 [BK PATCH] More i2c driver changes for 2.5.66 Greg KH
2003-04-03  0:15 ` [PATCH] " Greg KH
2003-04-03  0:15   ` Greg KH
2003-04-03  0:15     ` Greg KH
2003-04-03  0:15       ` Greg KH
2003-04-03  0:15         ` Greg KH
2003-04-03  0:15           ` Greg KH
2005-05-19  6:23             ` Greg KH
2003-04-03  0:15             ` Greg KH
2003-04-03  0:15               ` Greg KH
2005-05-19  6:23                 ` Greg KH
2003-04-03  0:15                 ` Greg KH
2003-04-03  0:15                   ` Greg KH
2003-04-03  0:15                     ` Greg KH
2003-04-03  0:15                       ` Greg KH
2003-04-03  0:15                         ` Greg KH
2003-04-03  0:15                           ` Greg KH
2003-04-03  0:15                             ` Greg KH
2003-04-03  6:21                 ` Albert Cranford
2005-05-19  6:23                   ` Albert Cranford
2003-04-03  6:33                   ` Greg KH
2005-05-19  6:23                     ` Greg KH
2003-04-03 13:06                     ` Albert Cranford
2005-05-19  6:23                       ` Albert Cranford
2003-04-03 16:37                       ` Greg KH
2005-05-19  6:23                         ` Greg KH
2003-05-09 23:55 [BK PATCH] More i2c driver changes for 2.5.69 Greg KH
2005-05-19  6:23 ` Greg KH
2003-05-09 23:56 ` [PATCH] " Greg KH
2005-05-19  6:23   ` Greg KH
2003-05-09 23:56   ` Greg KH
2005-05-19  6:23     ` Greg KH
2003-05-09 23:56     ` Greg KH
2005-05-19  6:23       ` Greg KH
2003-05-09 23:56       ` Greg KH
2005-05-19  6:23         ` Greg KH
2003-05-09 23:56         ` Greg KH
2005-05-19  6:23           ` Greg KH
2003-05-09 23:56           ` Greg KH
2005-05-19  6:23             ` Greg KH
2003-06-11 20:35 [BK PATCH] More i2c driver changes for 2.5.70 Greg KH
2005-05-19  6:23 ` Greg KH
2003-06-11 20:36 ` [PATCH] " Greg KH
2005-05-19  6:23   ` Greg KH
2003-06-11 20:36   ` Greg KH
2005-05-19  6:23     ` Greg KH
2003-06-11 20:36     ` Greg KH
2005-05-19  6:23       ` Greg KH
2003-06-11 20:36       ` Greg KH
2005-05-19  6:23         ` Greg KH
2003-06-11 20:36         ` Greg KH
2005-05-19  6:23           ` Greg KH
2003-06-11 20:36           ` Greg KH
2005-05-19  6:23             ` Greg KH
2003-06-12  2:40   ` Philip Pokorny
2005-05-19  6:23     ` Philip Pokorny

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.