android_kernel_xiaomi_sm8350/arch
Kay Sievers 1a9271331a PCI: struct device - replace bus_id with dev_name(), dev_set_name()
This patch is part of a larger patch series which will remove
the "char bus_id[20]" name string from struct device. The device
name is managed in the kobject anyway, and without any size
limitation, and just needlessly copied into "struct device".

To set and read the device name dev_name(dev) and dev_set_name(dev)
must be used. If your code uses static kobjects, which it shouldn't
do, "const char *init_name" can be used to statically provide the
name the registered device should have. At registration time, the
init_name field is cleared, to enforce the use of dev_name(dev) to
access the device name at a later time.

We need to get rid of all occurrences of bus_id in the entire tree
to be able to enable the new interface. Please apply this patch,
and possibly convert any remaining remaining occurrences of bus_id.

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-Off-By: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-01-07 11:12:23 -08:00
..
alpha alpha: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
arm arm: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
avr32 avr32: introduce asm/swab.h 2009-01-06 18:10:26 -08:00
blackfin blackfin: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
cris Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2009-01-06 17:04:29 -08:00
frv
h8300 h8300: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
ia64 ia64: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
m32r Merge branch 'cpus4096-for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2009-01-03 12:04:39 -08:00
m68k m68k: fix recursive dependency in Kconfig 2009-01-02 20:43:20 +01:00
m68knommu m68knommu: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
mips mips: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
mn10300
parisc atomic_t: unify all arch definitions 2009-01-06 15:59:10 -08:00
powerpc powerpc: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
s390 s390: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
sh sh: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
sparc sparc: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
um mm: invoke oom-killer from page fault 2009-01-06 15:58:58 -08:00
x86 PCI: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-07 11:12:23 -08:00
xtensa
.gitignore
Kconfig