nct6775.h (fc30eea1542dd787c6aa46e970014e97e390c5b2) nct6775.h (f4e6960f4f16b1ca5da16cec7612ecc86402ac05)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef __HWMON_NCT6775_H__
3#define __HWMON_NCT6775_H__
4
5#include <linux/types.h>
6
7enum kinds { nct6106, nct6116, nct6775, nct6776, nct6779, nct6791, nct6792,
8 nct6793, nct6795, nct6796, nct6797, nct6798 };

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

191 return ret;
192}
193
194static inline int nct6775_write_value(struct nct6775_data *data, u16 reg, u16 value)
195{
196 return regmap_write(data->regmap, reg, value);
197}
198
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef __HWMON_NCT6775_H__
3#define __HWMON_NCT6775_H__
4
5#include <linux/types.h>
6
7enum kinds { nct6106, nct6116, nct6775, nct6776, nct6779, nct6791, nct6792,
8 nct6793, nct6795, nct6796, nct6797, nct6798 };

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

191 return ret;
192}
193
194static inline int nct6775_write_value(struct nct6775_data *data, u16 reg, u16 value)
195{
196 return regmap_write(data->regmap, reg, value);
197}
198
199struct nct6775_data *nct6775_update_device(struct device *dev);
200
199bool nct6775_reg_is_word_sized(struct nct6775_data *data, u16 reg);
200int nct6775_probe(struct device *dev, struct nct6775_data *data,
201 const struct regmap_config *regmapcfg);
202
203ssize_t nct6775_show_alarm(struct device *dev, struct device_attribute *attr, char *buf);
204ssize_t nct6775_show_beep(struct device *dev, struct device_attribute *attr, char *buf);
205ssize_t nct6775_store_beep(struct device *dev, struct device_attribute *attr, const char *buf,
206 size_t count);

--- 46 unchanged lines hidden ---
201bool nct6775_reg_is_word_sized(struct nct6775_data *data, u16 reg);
202int nct6775_probe(struct device *dev, struct nct6775_data *data,
203 const struct regmap_config *regmapcfg);
204
205ssize_t nct6775_show_alarm(struct device *dev, struct device_attribute *attr, char *buf);
206ssize_t nct6775_show_beep(struct device *dev, struct device_attribute *attr, char *buf);
207ssize_t nct6775_store_beep(struct device *dev, struct device_attribute *attr, const char *buf,
208 size_t count);

--- 46 unchanged lines hidden ---