linux/drivers/thermal/qcom/tsens-8960.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 */

#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/regmap.h>
#include <linux/thermal.h>
#include "tsens.h"

#define CONFIG_ADDR
#define CONFIG_ADDR_8660
/* CONFIG_ADDR bitmasks */
#define CONFIG
#define CONFIG_MASK
#define CONFIG_8660
#define CONFIG_SHIFT_8660
#define CONFIG_MASK_8660

#define CNTL_ADDR
/* CNTL_ADDR bitmasks */
#define EN
#define SW_RST

#define MEASURE_PERIOD
#define SLP_CLK_ENA
#define SLP_CLK_ENA_8660
#define SENSOR0_SHIFT

#define THRESHOLD_ADDR

#define INT_STATUS_ADDR

#define S0_STATUS_OFF
#define S1_STATUS_OFF
#define S2_STATUS_OFF
#define S3_STATUS_OFF
#define S4_STATUS_OFF
#define S5_STATUS_OFF
#define S6_STATUS_OFF
#define S7_STATUS_OFF
#define S8_STATUS_OFF
#define S9_STATUS_OFF
#define S10_STATUS_OFF

/* Original slope - 350 to compensate mC to C inaccuracy */
static u32 tsens_msm8960_slope[] =;

static int suspend_8960(struct tsens_priv *priv)
{}

static int resume_8960(struct tsens_priv *priv)
{}

static int enable_8960(struct tsens_priv *priv, int id)
{}

static void disable_8960(struct tsens_priv *priv)
{}

static int calibrate_8960(struct tsens_priv *priv)
{}

static const struct reg_field tsens_8960_regfields[MAX_REGFIELDS] =;

static const struct tsens_ops ops_8960 =;

static struct tsens_features tsens_8960_feat =;

struct tsens_plat_data data_8960 =;