08 Nov, 2014
1 commit
-
We have a central copy of the GPL for that. Some addresses were already
outdated.Signed-off-by: Wolfram Sang
13 Mar, 2014
1 commit
-
Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
is not preferred.Signed-off-by: Jingoo Han
Signed-off-by: Wolfram Sang
25 Jan, 2014
1 commit
-
None of these files are actually using any __init type directives
and hence don't need to include . Most are just a
left over from __devinit and __cpuinit removal, or simply due to
code getting copied from one driver to the next.Signed-off-by: Paul Gortmaker
Acked-by: Jean Delvare
Signed-off-by: Wolfram Sang
11 Feb, 2013
6 commits
-
This patch corrects checkpatch errors.
The changes has also been removed as it has less meaning with version
control tools.Signed-off-by: Amaury Decrême
Reviewed-by: Jean Delvare
Signed-off-by: Wolfram Sang -
This patch corrects the display of the acpi_base unsigned hex value.
Signed-off-by: Amaury Decrême
Reviewed-by: Jean Delvare
Signed-off-by: Wolfram Sang -
This patch replaces hexadecimal values by constants for SMBus commands.
Signed-off-by: Amaury Decrême
Reviewed-by: Jean Delvare
Signed-off-by: Wolfram Sang -
Datasheet on collision:
SMBus Collision (SMBCOL_STS)
This bit is set when a SMBus Collision condition occurs and
SMBus Host loses in the bus arbitration. The software should
clear this bit and re-start SMBus operation.As the status will be cleared in transaction_end, we can remove the
sis630_write and prepare to return -EAGAIN to retry.Signed-off-by: Amaury Decrême
Reviewed-by: Jean Delvare
Signed-off-by: Wolfram Sang -
The sticky bits must be cleared at the end of the transaction by writing
a 1 to all fields.Datasheet:
SMBus Status (SMB_STS)
The following registers are all sticky bits and only can be
cleared by writing a one to their corresponding fields.Signed-off-by: Amaury Decrême
Reviewed-by: Jean Delvare
Signed-off-by: Wolfram Sang -
Signed-off-by: Amaury Decrême
Reviewed-by: Jean Delvare
Signed-off-by: Wolfram Sang
23 Dec, 2012
1 commit
-
CONFIG_HOTPLUG is going away as an option. As result the __dev*
markings will be going away.Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.Signed-off-by: Bill Pemberton
Acked-by: Peter Korsgaard (for ocores and mux-gpio)
Acked-by: Havard Skinnemoen (for i2c-gpio)
Acked-by: Guan Xuetao (for puf3)
Acked-by: Barry Song (for sirf)
Reviewed-by: Jean Delvare
[wsa: Fixed "foo* bar" flaws while we are here]
Signed-off-by: Wolfram Sang
24 Jul, 2012
1 commit
-
Convert the drivers in drivers/i2c/busses/* to usemodule_pci_driver()
macro which makes the code smaller and a bit simpler.Signed-off-by: Axel Lin
Acked-by: Wolfram Sang
Signed-off-by: Jean Delvare
Cc: Rudolf Marek
Cc: Olof Johansson
Cc: "Mark M. Hoffman"
Cc: Tomoya MORINAGA
15 Jan, 2012
1 commit
-
Autogenerated GPG tag for Rusty D1ADB8F1: 15EE 8D6C AB0E 7F0C F999 BFCB D920 0E6C D1AD B8F1
* tag 'for-linus' of git://github.com/rustyrussell/linux:
module_param: check that bool parameters really are bool.
intelfbdrv.c: bailearly is an int module_param
paride/pcd: fix bool verbose module parameter.
module_param: make bool parameters really bool (drivers & misc)
module_param: make bool parameters really bool (arch)
module_param: make bool parameters really bool (core code)
kernel/async: remove redundant declaration.
printk: fix unnecessary module_param_name.
lirc_parallel: fix module parameter description.
module_param: avoid bool abuse, add bint for special cases.
module_param: check type correctness for module_param_array
modpost: use linker section to generate table.
modpost: use a table rather than a giant if/else statement.
modules: sysfs - export: taint, coresize, initsize
kernel/params: replace DEBUGP with pr_debug
module: replace DEBUGP with pr_debug
module: struct module_ref should contains long fields
module: Fix performance regression on modules with large symbol tables
module: Add comments describing how the "strmap" logic worksFix up conflicts in scripts/mod/file2alias.c due to the new linker-
generated table approach to adding __mod_*_device_table entries. The
ARM sa11x0 mcp bus needed to be converted to that too.
13 Jan, 2012
3 commits
-
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.Acked-by: Mauro Carvalho Chehab
Signed-off-by: Rusty Russell -
Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
tables.Use DEFINE_PCI_DEVICE_TABLE ensures we make the pci_device_id table const
and marked as __devinitconst.This also fixes some warnings from checkpatch:
e.g.
WARNING: Use DEFINE_PCI_DEVICE_TABLE for struct pci_device_id
#1096: FILE: i2c/busses/i2c-intel-mid.c:1096:
+static struct pci_device_id intel_mid_i2c_ids[] = {Signed-off-by: Axel Lin
Cc: Rudolf Marek
Cc: Ben Dooks
Acked-by: Olof Johansson
Cc: "Mark M. Hoffman"
Acked-by: Dirk Brandewie
Cc: Tomoya MORINAGA
Acked-by: Wolfram Sang
Cc: Feng Tang
Cc: Sebastian Andrzej Siewior
Signed-off-by: Jean Delvare -
When adding checks for ACPI resource conflicts to many bus drivers,
not enough attention was paid to the error paths, and for several
drivers this causes 0 to be returned on error in some cases. Fix this
by properly returning a non-zero value on every error.Signed-off-by: Jean Delvare
Cc: stable@kernel.org
22 May, 2010
1 commit
-
As warned by checkpatch.pl, should be used instead of
.Signed-off-by: H Hartley Sweeten
Signed-off-by: Jean Delvare
02 Mar, 2010
1 commit
-
The id_table field of the struct pci_driver is constant in
so it is worth to make initialization data also constant.The semantic match that finds this kind of pattern is as follows:
(http://coccinelle.lip6.fr/)//
@r@
disable decl_init,const_decl_init;
identifier I1, I2, x;
@@
struct I1 {
...
const struct I2 *x;
...
};
@s@
identifier r.I1, y;
identifier r.x, E;
@@
struct I1 y = {
.x = E,
};
@c@
identifier r.I2;
identifier s.E;
@@
const struct I2 E[] = ... ;
@depends on !c@
identifier r.I2;
identifier s.E;
@@
+ const
struct I2 E[] = ...;
//Signed-off-by: Márton Németh
Cc: Julia Lawall
Signed-off-by: Jean Delvare
07 Dec, 2009
1 commit
-
These _setup functions are called from _probe so they can be marked
__devinit.Signed-off-by: Jean Delvare
05 May, 2009
1 commit
-
with while (timeout++ < MAX_TIMEOUT); timeout reaches MAX_TIMEOUT + 1
after the loop, so the tests below are off by one.Signed-off-by: Roel Kluin
Signed-off-by: Jean Delvare
27 Jan, 2009
1 commit
-
Signed-off-by: Jean Delvare
07 Jan, 2009
1 commit
-
Use snprintf instead of sprintf to set adapter names, it's safer.
Signed-off-by: Jean Delvare
15 Jul, 2008
5 commits
-
Signed-off-by: Jean Delvare
-
Check for ACPI resource conflicts in i2c bus drivers. I've included
all recent SMBus master drivers for PC hardware.I've voluntarily left out:
* Drivers that don't run on PCs: they can't conflict with ACPI.
* Bit-banged bus device drivers: it's very unlikely that ACPI would
deal with such buses.Signed-off-by: Jean Delvare
-
Let general purpose I2C/SMBus bus drivers add SPD to their class. Once
this is done, we will be able to tell the eeprom driver to only probe
for SPD EEPROMs and similar on these buses.Note that I took a conservative approach here, adding I2C_CLASS_SPD to
many drivers that have no idea whether they can host SPD EEPROMs or not.
This is to make sure that the eeprom driver doesn't stop probing buses
where SPD EEPROMs or equivalent live.So, bus driver maintainers and users should feel free to remove the SPD
class from drivers those buses never have SPD EEPROMs or they don't
want the eeprom driver to bind to them. Likewise, feel free to add the
SPD class to any bus driver I might have missed.Signed-off-by: Jean Delvare
-
Many PC SMBus host controller drivers don't properly handle the case
where they are requested to achieve a transaction they do not support.
Update them so that the consistently print a warning message and
return a single error value in this case.Signed-off-by: Jean Delvare
-
Tighten error paths used by various i2c adapters (mostly x86) so
they return real fault/errno codes instead of a "-1" (which is
most often interpreted as "-EPERM"). Build tested, with eyeball
review.One minor initial goal is to have adapters consistently return
the code "-ENXIO" when addressing a device doesn't get an ACK
response, at least in the probe paths where they are already
good at stifling related logspam.Signed-off-by: David Brownell
Signed-off-by: Jean Delvare
30 Apr, 2008
1 commit
-
Signed-off-by: Jean Delvare
18 Feb, 2007
1 commit
-
Globally, s/driverfs/sysfs/g.
Signed-off-by: Robert P. J. Day
Signed-off-by: Adrian Bunk
14 Feb, 2007
1 commit
-
IDs have been defined but not used by most of the I2C adapters.
By having a unique ID, clients can check for correct connection
during probe.Signed-off-by: Stephen Hemminger
Signed-off-by: Jean Delvare
27 Sep, 2006
1 commit
-
i2c: Constify i2c_algorithm declarations, part 2
Make struct i2c_algorithm declarations const in all i2c bus drivers
where it is possible.Signed-off-by: Jean Delvare
Cc: David Brownell
Signed-off-by: Greg Kroah-Hartman
11 Nov, 2005
1 commit
-
Signed-off-by: Greg Kroah-Hartman
29 Oct, 2005
3 commits
-
This patch updates .owner field for various struct pci_driver variables.
Signed-off-by: Laurent Riffard
Signed-off-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartman -
Clean up name string usage in 12 i2c bus drivers:
* Use the i2c_adapter name for requesting the I/O region rather than
redefining a new string.
* Do not initialize the i2c_adapter name to "unset".
This should save a few data bytes here and there.Signed-off-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartmandrivers/i2c/busses/i2c-ali1535.c | 6 +++---
drivers/i2c/busses/i2c-ali1563.c | 6 ++++--
drivers/i2c/busses/i2c-ali15x3.c | 5 +++--
drivers/i2c/busses/i2c-amd756.c | 5 ++---
drivers/i2c/busses/i2c-amd8111.c | 4 +++-
drivers/i2c/busses/i2c-i801.c | 4 ++--
drivers/i2c/busses/i2c-nforce2.c | 4 ++--
drivers/i2c/busses/i2c-piix4.c | 4 ++--
drivers/i2c/busses/i2c-sis5595.c | 5 +++--
drivers/i2c/busses/i2c-sis630.c | 6 ++++--
drivers/i2c/busses/i2c-sis96x.c | 5 +++--
drivers/i2c/busses/i2c-via.c | 4 ++--
12 files changed, 33 insertions(+), 25 deletions(-) -
Kill explicit static initializations to 0 in 10 i2c drivers.
Signed-off-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartmandrivers/i2c/algos/i2c-algo-pca.c | 2 +-
drivers/i2c/algos/i2c-algo-sibyte.c | 2 +-
drivers/i2c/busses/i2c-ali15x3.c | 4 ++--
drivers/i2c/busses/i2c-amd756.c | 2 +-
drivers/i2c/busses/i2c-iop3xx.c | 2 +-
drivers/i2c/busses/i2c-piix4.c | 8 ++++----
drivers/i2c/busses/i2c-sis5595.c | 4 ++--
drivers/i2c/busses/i2c-sis630.c | 2 +-
drivers/i2c/busses/i2c-sis96x.c | 2 +-
drivers/i2c/busses/i2c-via.c | 2 +-
10 files changed, 15 insertions(+), 15 deletions(-)
06 Sep, 2005
2 commits
-
There are no more users of i2c_algorithm.id, so we can finally drop
this structure member.Signed-off-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartman -
The name member of the i2c_algorithm is never used, although all
drivers conscientiously fill it. We can drop it completely, this
structure doesn't need to have a name.Signed-off-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartman
22 Jun, 2005
1 commit
-
Files that don't use CONFIG_* stuff shouldn't include config.h
Files that use CONFIG_* stuff should include config.hIt's that simple. ;-)
Signed-off-by: Alexey Dobriyan
Signed-off-by: Greg Kroah-Hartman
17 Apr, 2005
1 commit
-
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.Let it rip!