ds620.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) | ds620.c (a8b3a3a53f9a814e9938ea9cc179086ff5c0a387) |
---|---|
1/* 2 * ds620.c - Support for temperature sensor and thermostat DS620 3 * 4 * Copyright (C) 2010, 2011 Roland Stigge <stigge@antcom.de> 5 * 6 * based on ds1621.c by Christian W. Zuckschwerdt <zany@triq.net> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 63 unchanged lines hidden (view full) --- 72 char valid; /* !=0 if following fields are valid */ 73 unsigned long last_updated; /* In jiffies */ 74 75 s16 temp[3]; /* Register values, word */ 76}; 77 78static void ds620_init_client(struct i2c_client *client) 79{ | 1/* 2 * ds620.c - Support for temperature sensor and thermostat DS620 3 * 4 * Copyright (C) 2010, 2011 Roland Stigge <stigge@antcom.de> 5 * 6 * based on ds1621.c by Christian W. Zuckschwerdt <zany@triq.net> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 63 unchanged lines hidden (view full) --- 72 char valid; /* !=0 if following fields are valid */ 73 unsigned long last_updated; /* In jiffies */ 74 75 s16 temp[3]; /* Register values, word */ 76}; 77 78static void ds620_init_client(struct i2c_client *client) 79{ |
80 struct ds620_platform_data *ds620_info = client->dev.platform_data; | 80 struct ds620_platform_data *ds620_info = dev_get_platdata(&client->dev); |
81 u16 conf, new_conf; 82 83 new_conf = conf = 84 i2c_smbus_read_word_swapped(client, DS620_REG_CONF); 85 86 /* switch to continuous conversion mode */ 87 new_conf &= ~DS620_REG_CONFIG_1SHOT; 88 /* already high at power-on, but don't trust the BIOS! */ --- 210 unchanged lines hidden --- | 81 u16 conf, new_conf; 82 83 new_conf = conf = 84 i2c_smbus_read_word_swapped(client, DS620_REG_CONF); 85 86 /* switch to continuous conversion mode */ 87 new_conf &= ~DS620_REG_CONFIG_1SHOT; 88 /* already high at power-on, but don't trust the BIOS! */ --- 210 unchanged lines hidden --- |