extern void vm_deinit_resource(struct vm_init_s *info);
-static DEFINE_MUTEX(vm_mutex);
-
/* #if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON6TV */
#if 1
#define CANVAS_WIDTH_ALIGN 32
void __iomem *ge2d_reg_map;
static struct ge2d_device_s ge2d_device;
-static DEFINE_MUTEX(ge2d_mutex);
unsigned int ge2d_log_level;
unsigned int ge2d_dump_reg_enable;
unsigned int ge2d_dump_reg_cnt;
#undef pr_fmt
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-static DEFINE_MUTEX(logo_lock);
-
struct para_pair_s {
char *name;
int value;
return snprintf(buf, 40, "%s\n", name);
}
-#define STORE_INFO(name) \
- {mutex_lock(&cvbs_mutex); \
- snprintf(name, 40, "%s", buf); \
- mutex_unlock(&cvbs_mutex); }
-
-#define SET_CVBS_CLASS_ATTR(name, op) \
-static char name[40]; \
-static ssize_t aml_CVBS_attr_##name##_show(struct class *cla, \
- struct class_attribute *attr, char *buf) \
-{ \
- return show_info(name, buf); \
-} \
-static ssize_t aml_CVBS_attr_##name##_store(struct class *cla, \
- struct class_attribute *attr, \
- const char *buf, size_t count) \
-{ \
- STORE_INFO(name); \
- op(name); \
- return strnlen(buf, count); \
-} \
-struct class_attribute class_CVBS_attr_##name = \
-__ATTR(name, 0644, \
- aml_CVBS_attr_##name##_show, aml_CVBS_attr_##name##_store)
-
-
#endif
static unsigned int vdac_cfg_value;
static DEFINE_MUTEX(setmode_mutex);
static DEFINE_MUTEX(CC_mutex);
+static DEFINE_MUTEX(cvbs_mutex);
+
+#define STORE_INFO(name) \
+ {mutex_lock(&cvbs_mutex); \
+ snprintf(name, 40, "%s", buf); \
+ mutex_unlock(&cvbs_mutex); }
+
+#define SET_CVBS_CLASS_ATTR(name, op) \
+static char name[40]; \
+static ssize_t aml_CVBS_attr_##name##_show(struct class *cla, \
+ struct class_attribute *attr, char *buf) \
+{ \
+ return show_info(name, buf); \
+} \
+static ssize_t aml_CVBS_attr_##name##_store(struct class *cla, \
+ struct class_attribute *attr, \
+ const char *buf, size_t count) \
+{ \
+ STORE_INFO(name); \
+ op(name); \
+ return strnlen(buf, count); \
+} \
+struct class_attribute class_CVBS_attr_##name = \
+__ATTR(name, 0644, \
+ aml_CVBS_attr_##name##_show, aml_CVBS_attr_##name##_store)
static int cvbs_vdac_power_level;
static void vdac_power_level_store(char *para);
struct clk *vdac_clk_gate;
};
-static DEFINE_MUTEX(cvbs_mutex);
-
struct vout_CCparm_s {
unsigned int type;
unsigned char data1;