Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360571
b: refs/heads/master
c: e7b2884
h: refs/heads/master
i:
  360569: d60b7eb
  360567: fe0a75c
v: v3
  • Loading branch information
Benson Leung authored and Matthew Garrett committed Feb 27, 2013
1 parent a5a5554 commit df50e2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 33a84f8a7694e442a624556ef3ae40e91e31bd11
refs/heads/master: e7b28845d794b0f382a3942558c24e63d5e45c32
14 changes: 11 additions & 3 deletions trunk/drivers/platform/x86/chromeos_laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,24 @@ static __init struct i2c_client *add_probed_i2c_device(
* info->addr.
* Returns NULL if no device found.
*/
static struct i2c_client __init *add_smbus_device(const char *name,
struct i2c_board_info *info)
static __init struct i2c_client *add_i2c_device(const char *name,
enum i2c_adapter_type type,
struct i2c_board_info *info)
{
const unsigned short addr_list[] = { info->addr, I2C_CLIENT_END };
return __add_probed_i2c_device(name,
find_i2c_adapter_num(I2C_ADAPTER_SMBUS),
find_i2c_adapter_num(type),
info,
addr_list);
}


static struct i2c_client __init *add_smbus_device(const char *name,
struct i2c_board_info *info)
{
return add_i2c_device(name, I2C_ADAPTER_SMBUS, info);
}

static int __init setup_cyapa_smbus_tp(const struct dmi_system_id *id)
{
/* add cyapa touchpad on smbus */
Expand Down

0 comments on commit df50e2b

Please sign in to comment.