cm32181.c (93fbff1197474d7b65e598c6f48fa82a5c334539) | cm32181.c (0096fc879358ad6b82ee7e790c07b118c515c980) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2013 Capella Microsystems Inc. 4 * Author: Kevin Tsai <ktsai@capellamicro.com> 5 */ 6 7#include <linux/acpi.h> 8#include <linux/delay.h> --- 491 unchanged lines hidden (view full) --- 500{ 501 struct i2c_client *client = to_i2c_client(dev); 502 struct cm32181_chip *cm32181 = iio_priv(dev_get_drvdata(dev)); 503 504 return i2c_smbus_write_word_data(client, CM32181_REG_ADDR_CMD, 505 cm32181->conf_regs[CM32181_REG_ADDR_CMD]); 506} 507 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2013 Capella Microsystems Inc. 4 * Author: Kevin Tsai <ktsai@capellamicro.com> 5 */ 6 7#include <linux/acpi.h> 8#include <linux/delay.h> --- 491 unchanged lines hidden (view full) --- 500{ 501 struct i2c_client *client = to_i2c_client(dev); 502 struct cm32181_chip *cm32181 = iio_priv(dev_get_drvdata(dev)); 503 504 return i2c_smbus_write_word_data(client, CM32181_REG_ADDR_CMD, 505 cm32181->conf_regs[CM32181_REG_ADDR_CMD]); 506} 507 |
508DEFINE_SIMPLE_DEV_PM_OPS(cm32181_pm_ops, cm32181_suspend, cm32181_resume); | 508static DEFINE_SIMPLE_DEV_PM_OPS(cm32181_pm_ops, cm32181_suspend, cm32181_resume); |
509 510static const struct of_device_id cm32181_of_match[] = { 511 { .compatible = "capella,cm3218" }, 512 { .compatible = "capella,cm32181" }, 513 { } 514}; 515MODULE_DEVICE_TABLE(of, cm32181_of_match); 516 --- 23 unchanged lines hidden --- | 509 510static const struct of_device_id cm32181_of_match[] = { 511 { .compatible = "capella,cm3218" }, 512 { .compatible = "capella,cm32181" }, 513 { } 514}; 515MODULE_DEVICE_TABLE(of, cm32181_of_match); 516 --- 23 unchanged lines hidden --- |