mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
soc: qcom: Add snapshot of socinfo driver
This is a snapshot of the socinfo driver as of msm-5.15
commit <908a517b050d> ("Merge "sched/walt: remove duplicate
definitions of rt_task_arrival_time"").
Change-Id: Ib969b851ccbfc5651259aba5872575d0fa3994db
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
This commit is contained in:
parent
e80d68e98c
commit
15d0a17a18
File diff suppressed because it is too large
Load Diff
32
include/soc/qcom/socinfo.h
Normal file
32
include/soc/qcom/socinfo.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __SOC_QCOM_SOCINFO_H__
|
||||
#define __SOC_QCOM_SOCINFO_H__
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#if IS_ENABLED(CONFIG_QCOM_SOCINFO)
|
||||
uint32_t socinfo_get_id(void);
|
||||
uint32_t socinfo_get_serial_number(void);
|
||||
const char *socinfo_get_id_string(void);
|
||||
#else
|
||||
static inline uint32_t socinfo_get_id(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline uint32_t socinfo_get_serial_number(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline const char *socinfo_get_id_string(void)
|
||||
{
|
||||
return "N/A";
|
||||
}
|
||||
#endif /* CONFIG_QCOM_SOCINFO */
|
||||
|
||||
#endif /* __SOC_QCOM_SOCINFO_H__ */
|
||||
Loading…
Reference in New Issue
Block a user