tsens.h (4aef2ec9022b217f74d0f4c9b84081f07cc223d9) | tsens.h (a7ff82976122eb6d1fd286dc34f09b6ecd756b60) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 4 */ 5 6#ifndef __QCOM_TSENS_H__ 7#define __QCOM_TSENS_H__ 8 --- 566 unchanged lines hidden (view full) --- 575 struct tsens_sensor sensor[]; 576}; 577 578char *qfprom_read(struct device *dev, const char *cname); 579void compute_intercept_slope(struct tsens_priv *priv, u32 *pt1, u32 *pt2, u32 mode); 580int init_common(struct tsens_priv *priv); 581int get_temp_tsens_valid(const struct tsens_sensor *s, int *temp); 582int get_temp_common(const struct tsens_sensor *s, int *temp); | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 4 */ 5 6#ifndef __QCOM_TSENS_H__ 7#define __QCOM_TSENS_H__ 8 --- 566 unchanged lines hidden (view full) --- 575 struct tsens_sensor sensor[]; 576}; 577 578char *qfprom_read(struct device *dev, const char *cname); 579void compute_intercept_slope(struct tsens_priv *priv, u32 *pt1, u32 *pt2, u32 mode); 580int init_common(struct tsens_priv *priv); 581int get_temp_tsens_valid(const struct tsens_sensor *s, int *temp); 582int get_temp_common(const struct tsens_sensor *s, int *temp); |
583int tsens_enable_irq(struct tsens_priv *priv); 584void tsens_disable_irq(struct tsens_priv *priv); 585int tsens_set_trips(void *_sensor, int low, int high); 586irqreturn_t tsens_irq_thread(int irq, void *data); 587irqreturn_t tsens_critical_irq_thread(int irq, void *data); | |
588 589/* TSENS target */ 590extern struct tsens_plat_data data_8960; 591 592/* TSENS v0.1 targets */ 593extern struct tsens_plat_data data_8916, data_8974; 594 595/* TSENS v1 targets */ 596extern struct tsens_plat_data data_tsens_v1, data_8976; 597 598/* TSENS v2 targets */ 599extern struct tsens_plat_data data_8996, data_tsens_v2; 600 601#endif /* __QCOM_TSENS_H__ */ | 583 584/* TSENS target */ 585extern struct tsens_plat_data data_8960; 586 587/* TSENS v0.1 targets */ 588extern struct tsens_plat_data data_8916, data_8974; 589 590/* TSENS v1 targets */ 591extern struct tsens_plat_data data_tsens_v1, data_8976; 592 593/* TSENS v2 targets */ 594extern struct tsens_plat_data data_8996, data_tsens_v2; 595 596#endif /* __QCOM_TSENS_H__ */ |