.dev_name = "exynos-cs",
};
-static ssize_t ecs_enable_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t ecs_enable_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
return scnprintf(buf, 10, "%sable\n", FLAG_T32_EN ? "en" : "dis");
}
-static ssize_t ecs_enable_store(struct kobject *kobj,
- struct kobj_attribute *attr,
+static ssize_t ecs_enable_store(struct device *dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
int en;
return count;
}
-static struct kobj_attribute ecs_enable_attr =
+static struct device_attribute ecs_enable_attr =
__ATTR(enabled, 0644, ecs_enable_show, ecs_enable_store);
static struct attribute *ecs_sysfs_attrs[] = {
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/smc.h>
+#include <linux/reboot.h>
#include <linux/debug-snapshot-helper.h>
#include <linux/debug-snapshot.h>
#include <soc/samsung/exynos-debug.h>
#include <soc/samsung/acpm_ipc_ctrl.h>
#endif
-extern void (*arm_pm_restart)(char str, const char *cmd);
+extern void (*arm_pm_restart)(enum reboot_mode str, const char *cmd);
static void exynos_early_panic(void *val)
{
static void exynos_post_panic_exit(void *val)
{
#ifdef CONFIG_DEBUG_SNAPSHOT_PANIC_REBOOT
- arm_pm_restart(0, "panic");
+ arm_pm_restart(REBOOT_COLD, "panic");
#endif
}
.dev_name = "itmon",
};
-static ssize_t itmon_timeout_fix_val_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t itmon_timeout_fix_val_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
ssize_t n = 0;
struct itmon_platdata *pdata = g_itmon->pdata;
return n;
}
-static ssize_t itmon_timeout_fix_val_store(struct kobject *kobj,
- struct kobj_attribute *attr, const char *buf, size_t count)
+static ssize_t itmon_timeout_fix_val_store(struct device *dev,
+ struct device_attribute *attr, const char *buf, size_t count)
{
unsigned long val = simple_strtoul(buf, NULL, 0);
struct itmon_platdata *pdata = g_itmon->pdata;
return count;
}
-static ssize_t itmon_scandump_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t itmon_scandump_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
ssize_t n = 0;
struct itmon_platdata *pdata = g_itmon->pdata;
return n;
}
-static ssize_t itmon_scandump_store(struct kobject *kobj,
- struct kobj_attribute *attr, const char *buf, size_t count)
+static ssize_t itmon_scandump_store(struct device *dev,
+ struct device_attribute *attr, const char *buf, size_t count)
{
unsigned long val = simple_strtoul(buf, NULL, 0);
struct itmon_platdata *pdata = g_itmon->pdata;
return count;
}
-static ssize_t itmon_timeout_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t itmon_timeout_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
unsigned long i, offset;
ssize_t n = 0;
return n;
}
-static ssize_t itmon_timeout_val_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t itmon_timeout_val_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
unsigned long i, offset;
ssize_t n = 0;
return n;
}
-static ssize_t itmon_timeout_freeze_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t itmon_timeout_freeze_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
unsigned long i, offset;
ssize_t n = 0;
return n;
}
-static ssize_t itmon_timeout_store(struct kobject *kobj,
- struct kobj_attribute *attr,
+static ssize_t itmon_timeout_store(struct device *dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
char *name;
return count;
}
-static ssize_t itmon_timeout_val_store(struct kobject *kobj,
- struct kobj_attribute *attr,
+static ssize_t itmon_timeout_val_store(struct device *dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
char *name;
return count;
}
-static ssize_t itmon_timeout_freeze_store(struct kobject *kobj,
- struct kobj_attribute *attr,
+static ssize_t itmon_timeout_freeze_store(struct device *dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
char *name;
return count;
}
-static struct kobj_attribute itmon_timeout_attr =
+static struct device_attribute itmon_timeout_attr =
__ATTR(timeout_en, 0644, itmon_timeout_show, itmon_timeout_store);
-static struct kobj_attribute itmon_timeout_fix_attr =
+static struct device_attribute itmon_timeout_fix_attr =
__ATTR(set_val, 0644, itmon_timeout_fix_val_show, itmon_timeout_fix_val_store);
-static struct kobj_attribute itmon_scandump_attr =
+static struct device_attribute itmon_scandump_attr =
__ATTR(scandump_en, 0644, itmon_scandump_show, itmon_scandump_store);
-static struct kobj_attribute itmon_timeout_val_attr =
+static struct device_attribute itmon_timeout_val_attr =
__ATTR(timeout_val, 0644, itmon_timeout_val_show, itmon_timeout_val_store);
-static struct kobj_attribute itmon_timeout_freeze_attr =
+static struct device_attribute itmon_timeout_freeze_attr =
__ATTR(timeout_freeze, 0644, itmon_timeout_freeze_show, itmon_timeout_freeze_store);
static struct attribute *itmon_sysfs_attrs[] = {
extern int dss_irqexit_exlist[DSS_EX_MAX_NUM];
extern unsigned int dss_irqexit_threshold;
-static ssize_t dss_enable_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t dss_enable_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
struct dbg_snapshot_item *item;
unsigned long i;
return n;
}
-static ssize_t dss_enable_store(struct kobject *kobj,
- struct kobj_attribute *attr,
+static ssize_t dss_enable_store(struct device *dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
int en;
return count;
}
-static ssize_t dss_callstack_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t dss_callstack_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
ssize_t n = 0;
return n;
}
-static ssize_t dss_callstack_store(struct kobject *kobj, struct kobj_attribute *attr,
+static ssize_t dss_callstack_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{
unsigned long callstack;
return count;
}
-static ssize_t dss_irqlog_exlist_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t dss_irqlog_exlist_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
unsigned long i;
ssize_t n = 0;
return n;
}
-static ssize_t dss_irqlog_exlist_store(struct kobject *kobj,
- struct kobj_attribute *attr,
+static ssize_t dss_irqlog_exlist_store(struct device *dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
unsigned long i;
}
#ifdef CONFIG_DEBUG_SNAPSHOT_IRQ_EXIT
-static ssize_t dss_irqexit_exlist_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t dss_irqexit_exlist_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
unsigned long i;
ssize_t n = 0;
return n;
}
-static ssize_t dss_irqexit_exlist_store(struct kobject *kobj,
- struct kobj_attribute *attr,
+static ssize_t dss_irqexit_exlist_store(struct device *dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
unsigned long i;
return count;
}
-static ssize_t dss_irqexit_threshold_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t dss_irqexit_threshold_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
ssize_t n;
return n;
}
-static ssize_t dss_irqexit_threshold_store(struct kobject *kobj,
- struct kobj_attribute *attr,
+static ssize_t dss_irqexit_threshold_store(struct device *dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
unsigned long val;
#endif
#ifdef CONFIG_DEBUG_SNAPSHOT_REG
-static ssize_t dss_reg_exlist_show(struct kobject *kobj,
- struct kobj_attribute *attr, char *buf)
+static ssize_t dss_reg_exlist_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
{
unsigned long i;
ssize_t n = 0;
return n;
}
-static ssize_t dss_reg_exlist_store(struct kobject *kobj,
- struct kobj_attribute *attr,
+static ssize_t dss_reg_exlist_store(struct device *dev,
+ struct device_attribute *attr,
const char *buf, size_t count)
{
unsigned long i;
#endif
-static struct kobj_attribute dss_enable_attr =
+static struct device_attribute dss_enable_attr =
__ATTR(enabled, 0644, dss_enable_show, dss_enable_store);
-static struct kobj_attribute dss_callstack_attr =
+static struct device_attribute dss_callstack_attr =
__ATTR(callstack, 0644, dss_callstack_show, dss_callstack_store);
-static struct kobj_attribute dss_irqlog_attr =
+static struct device_attribute dss_irqlog_attr =
__ATTR(exlist_irqdisabled, 0644, dss_irqlog_exlist_show,
dss_irqlog_exlist_store);
#ifdef CONFIG_DEBUG_SNAPSHOT_IRQ_EXIT
-static struct kobj_attribute dss_irqexit_attr =
+static struct device_attribute dss_irqexit_attr =
__ATTR(exlist_irqexit, 0644, dss_irqexit_exlist_show,
dss_irqexit_exlist_store);
-static struct kobj_attribute dss_irqexit_threshold_attr =
+static struct device_attribute dss_irqexit_threshold_attr =
__ATTR(threshold_irqexit, 0644, dss_irqexit_threshold_show,
dss_irqexit_threshold_store);
#endif
#ifdef CONFIG_DEBUG_SNAPSHOT_REG
-static struct kobj_attribute dss_reg_attr =
+static struct device_attribute dss_reg_attr =
__ATTR(exlist_reg, 0644, dss_reg_exlist_show, dss_reg_exlist_store);
#endif