.notifier_call = thermal_hot_pm_notify,
};
-static ssize_t show_gpu3DMinClock(struct device_driver *dev, char *buf)
+static ssize_t gpu3DMinClock_show(struct device_driver *dev, char *buf)
{
gctUINT currentf,minf,maxf;
gckGALDEVICE galDevice;
return strlen(buf);
}
-static ssize_t update_gpu3DMinClock(struct device_driver *dev, const char *buf, size_t count)
+static ssize_t gpu3DMinClock_store(struct device_driver *dev, const char *buf, size_t count)
{
gctINT fields;
return count;
}
-static DRIVER_ATTR(gpu3DMinClock, S_IRUGO | S_IWUSR, show_gpu3DMinClock, update_gpu3DMinClock);
+static DRIVER_ATTR_RW(gpu3DMinClock);
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
static struct imx_priv imxPriv;
#if defined(CONFIG_PM_OPP)
-static ssize_t show_gpuMode(struct device_driver *dev, char *buf)
+static ssize_t gpu_mode_show(struct device_driver *dev, char *buf)
{
struct imx_priv *priv = &imxPriv;
char buffer[512];
return strlen(buf);
}
-static ssize_t update_gpuMode(struct device_driver *dev, const char *buf, size_t count)
+static ssize_t gpu_mode_store(struct device_driver *dev, const char *buf, size_t count)
{
unsigned long core_freq = 0;
unsigned long shader_freq = 0;
return count;
}
-static DRIVER_ATTR(gpu_mode, S_IRUGO | S_IWUSR, show_gpuMode, update_gpuMode);
+static DRIVER_ATTR_RW(gpu_mode);
int init_gpu_opp_table(struct device *dev)
{