#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#define BOOTSTAGE …
#define BOOTSTAGE_LO …
#define CUR_BOOTSTAGE …
#define BOOTSTAGE_HI …
#define SOC_POWER_LIMIT …
struct smpro_misc { … };
static ssize_t boot_progress_show(struct device *dev, struct device_attribute *da, char *buf)
{ … }
static DEVICE_ATTR_RO(boot_progress);
static ssize_t soc_power_limit_show(struct device *dev, struct device_attribute *da, char *buf)
{ … }
static ssize_t soc_power_limit_store(struct device *dev, struct device_attribute *da,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(soc_power_limit);
static struct attribute *smpro_misc_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static int smpro_misc_probe(struct platform_device *pdev)
{ … }
static struct platform_driver smpro_misc_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;