search for: i2c_smbus_quick

Displaying 4 results from an estimated 4 matches for "i2c_smbus_quick".

2014 Jul 07
0
[PATCH] Support for ASEM UPS on Linux/i2c
...-O2 -Wall -Wsign-compare conftest.c >&5 In file included from conftest.c:72:0: /usr/include/linux/i2c-dev.h: In function 'i2c_smbus_write_quick': /usr/include/linux/i2c-dev.h:176:55: error: 'NULL' undeclared (first use in this function) return i2c_smbus_access(file,value,0,I2C_SMBUS_QUICK,NULL); ^ /usr/include/linux/i2c-dev.h:176:55: note: each undeclared identifier is reported only once for each function it appears in /usr/include/linux/i2c-dev.h: In function 'i2c_smbus_write_byte': /usr/include/linux/i2c-dev.h:191:41:...
2014 Jul 07
2
[PATCH] Support for ASEM UPS on Linux/i2c
On 07/07/2014 15:03, Charles Lepple wrote: > Giuseppe Corbelli <giuseppe.corbelli <at> copanitalia.com> writes: > >> Nevermind, please try the one attached, just created by >> >> git diff -p 80d9534 configure.ac data/driver.list.in drivers/Makefile.am >> drivers/asem.c > asem.patch >> >> Just applied it on current master
2014 Jul 08
2
[PATCH] Support for ASEM UPS on Linux/i2c
...are conftest.c >&5 > In file included from conftest.c:72:0: > /usr/include/linux/i2c-dev.h: In function 'i2c_smbus_write_quick': > /usr/include/linux/i2c-dev.h:176:55: error: 'NULL' undeclared (first use in this function) > return i2c_smbus_access(file,value,0,I2C_SMBUS_QUICK,NULL); > ^ > /usr/include/linux/i2c-dev.h:176:55: note: each undeclared identifier is reported only once for each function it appears in > /usr/include/linux/i2c-dev.h: In function 'i2c_smbus_write_byte': > /usr/include/lin...
2009 Nov 19
2
[RFC] nouveau: Add basic i2c sensor chip support
...+ + temp = temp * 430 / 10000 - 227; + return temp; +} + +static int nouveau_thermal_g84_read_temp(struct drm_device *dev) +{ + return nv_rd32(dev, 0x20400); +} + +static int nouveau_thermal_i2c_xfer(struct i2c_adapter *adapter, int addr) +{ + int ret; + ret = i2c_smbus_xfer(adapter, addr, 0, 0, 0, I2C_SMBUS_QUICK, NULL); + + if (ret) + return ret; + + return 0; +} + +static int nouveau_thermal_i2c_probe(struct i2c_adapter *adapter, int addr) +{ + struct i2c_board_info info = { }; + + if (nouveau_thermal_i2c_xfer(adapter, addr)) + return -ENODEV; + + switch (addr) { + case 0x2d: +#ifndef CONFIG_SENSORS_W83...