Merge tag 'device-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Mar 2012 17:41:37 +0000 (10:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Mar 2012 17:41:37 +0000 (10:41 -0700)
Pull <linux/device.h> avoidance patches from Paul Gortmaker:
 "Nearly every subsystem has some kind of header with a proto like:

void foo(struct device *dev);

  and yet there is no reason for most of these guys to care about the
  sub fields within the device struct.  This allows us to significantly
  reduce the scope of headers including headers.  For this instance, a
  reduction of about 40% is achieved by replacing the include with the
  simple fact that the device is some kind of a struct.

  Unlike the much larger module.h cleanup, this one is simply two
  commits.  One to fix the implicit <linux/device.h> users, and then one
  to delete the device.h includes from the linux/include/ dir wherever
  possible."

* tag 'device-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux:
  device.h: audit and cleanup users in main include dir
  device.h: cleanup users outside of linux/include (C files)

29 files changed:
1  2 
drivers/base/regmap/regcache-lzo.c
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regcache.c
drivers/base/regmap/regmap-debugfs.c
drivers/mfd/wm8994-regmap.c
include/linux/amba/pl022.h
include/linux/atmdev.h
include/linux/cdrom.h
include/linux/cpu.h
include/linux/cpufreq.h
include/linux/fb.h
include/linux/firewire.h
include/linux/mmc/card.h
include/linux/mmc/host.h
include/linux/netdevice.h
include/linux/of_device.h
include/linux/pm_domain.h
include/linux/regmap.h
include/linux/regulator/consumer.h
include/media/v4l2-ctrls.h
include/media/v4l2-ioctl.h
include/net/mac80211.h
include/scsi/scsi_device.h
include/sound/core.h
include/sound/soc-dapm.h
include/trace/events/regmap.h
include/trace/events/writeback.h
sound/core/init.c
sound/core/pcm.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 1236d262b3e868700e330af2fcb0783aa08702cd,fa2e20b621b018f9a1d51e032213d5f2ba375e27..91f8286106eaed1e9b8e9acdeab5a8efe9a6f452
  #define _LINUX_PM_DOMAIN_H
  
  #include <linux/device.h>
+ #include <linux/mutex.h>
+ #include <linux/pm.h>
  #include <linux/err.h>
 +#include <linux/of.h>
  
  enum gpd_status {
        GPD_STATE_ACTIVE = 0,   /* PM domain is active */
index 5d7e6add0084257b219052ff2f8ab6c2ccc34d28,765736cbb5093380ab6be278732bcd9028f764dd..a90abb6bfa6400402b516865df47db182dd5e0a0
  #include <linux/list.h>
  
  struct module;
+ struct device;
  struct i2c_client;
  struct spi_device;
 +struct regmap;
  
  /* An enum of all the supported cache types */
  enum regcache_type {
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge