cm32181.c (f6b35db072dcf25365972503ade853960da5c984) cm32181.c (61f3e708ccc32c2b233777a5f69c5bb060854cee)
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>

--- 79 unchanged lines hidden (view full) ---

88 const int *als_it_values;
89};
90
91static int cm32181_read_als_it(struct cm32181_chip *cm32181, int *val2);
92
93#ifdef CONFIG_ACPI
94/**
95 * cm32181_acpi_get_cpm() - Get CPM object from ACPI
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>

--- 79 unchanged lines hidden (view full) ---

88 const int *als_it_values;
89};
90
91static int cm32181_read_als_it(struct cm32181_chip *cm32181, int *val2);
92
93#ifdef CONFIG_ACPI
94/**
95 * cm32181_acpi_get_cpm() - Get CPM object from ACPI
96 * @client pointer of struct i2c_client.
97 * @obj_name pointer of ACPI object name.
98 * @count maximum size of return array.
99 * @vals pointer of array for return elements.
96 * @dev: pointer of struct device.
97 * @obj_name: pointer of ACPI object name.
98 * @values: pointer of array for return elements.
99 * @count: maximum size of return array.
100 *
101 * Convert ACPI CPM table to array.
102 *
103 * Return: -ENODEV for fail. Otherwise is number of elements.
104 */
105static int cm32181_acpi_get_cpm(struct device *dev, char *obj_name,
106 u64 *values, int count)
107{

--- 410 unchanged lines hidden ---
100 *
101 * Convert ACPI CPM table to array.
102 *
103 * Return: -ENODEV for fail. Otherwise is number of elements.
104 */
105static int cm32181_acpi_get_cpm(struct device *dev, char *obj_name,
106 u64 *values, int count)
107{

--- 410 unchanged lines hidden ---