mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-25 20:28:21 +00:00
-Wall cleanups
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1803 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
264e2dce9c
commit
7e8d8dc3c7
2 files changed
+4
-4
No files matched your search
@@ -176,8 +176,6 @@ static void __init dmi_save_ident(struct dmi_header *dm, int slot, int string)
|
|||||||
|
|
||||||
static void __init dmi_decode(struct dmi_header *dm)
|
static void __init dmi_decode(struct dmi_header *dm)
|
||||||
{
|
{
|
||||||
u8 *data = (u8 *)dm;
|
|
||||||
|
|
||||||
switch(dm->type)
|
switch(dm->type)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
|||||||
@@ -111,7 +111,9 @@ struct nforce2_smbus {
|
|||||||
static s32 nforce2_access(struct i2c_adapter *adap, u16 addr,
|
static s32 nforce2_access(struct i2c_adapter *adap, u16 addr,
|
||||||
unsigned short flags, char read_write,
|
unsigned short flags, char read_write,
|
||||||
u8 command, int size, union i2c_smbus_data *data);
|
u8 command, int size, union i2c_smbus_data *data);
|
||||||
|
#if 0
|
||||||
static void nforce2_do_pause(unsigned int amount);
|
static void nforce2_do_pause(unsigned int amount);
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
static int nforce2_block_transaction(union i2c_smbus_data *data,
|
static int nforce2_block_transaction(union i2c_smbus_data *data,
|
||||||
char read_write, int i2c_enable);
|
char read_write, int i2c_enable);
|
||||||
@@ -128,13 +130,14 @@ static struct i2c_algorithm smbus_algorithm = {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* Internally used pause function */
|
/* Internally used pause function */
|
||||||
void nforce2_do_pause(unsigned int amount)
|
void nforce2_do_pause(unsigned int amount)
|
||||||
{
|
{
|
||||||
current->state = TASK_INTERRUPTIBLE;
|
current->state = TASK_INTERRUPTIBLE;
|
||||||
schedule_timeout(amount);
|
schedule_timeout(amount);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Return -1 on error. See smbus.h for more information */
|
/* Return -1 on error. See smbus.h for more information */
|
||||||
s32 nforce2_access(struct i2c_adapter * adap, u16 addr, unsigned short flags,
|
s32 nforce2_access(struct i2c_adapter * adap, u16 addr, unsigned short flags,
|
||||||
@@ -383,7 +386,6 @@ static int __devinit nforce2_probe(struct pci_dev *dev, const struct pci_device_
|
|||||||
|
|
||||||
static void __devexit nforce2_remove(struct pci_dev *dev)
|
static void __devexit nforce2_remove(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
int res;
|
|
||||||
struct nforce2_smbus *smbuses = (void*) pci_get_drvdata(dev);
|
struct nforce2_smbus *smbuses = (void*) pci_get_drvdata(dev);
|
||||||
|
|
||||||
if (smbuses[0].base) {
|
if (smbuses[0].base) {
|
||||||
|
|||||||
Reference in new issue
Block a user