Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218226
b: refs/heads/master
c: 5c4abd0
h: refs/heads/master
v: v3
  • Loading branch information
Francisco Jerez authored and Ben Skeggs committed Sep 24, 2010
1 parent a4beee1 commit 6a35e56
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66146da06643d8ee89bc5255fb0254006e3d0e79
refs/heads/master: 5c4abd09bdefb41d0c80055aa9d98433624ce1f0
10 changes: 4 additions & 6 deletions trunk/drivers/gpu/drm/nouveau/nouveau_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ nouveau_pm_set_perflvl(struct device *d, struct device_attribute *a,
return strlen(buf);
}

DEVICE_ATTR(performance_level, S_IRUGO | S_IWUSR,
nouveau_pm_get_perflvl, nouveau_pm_set_perflvl);
static DEVICE_ATTR(performance_level, S_IRUGO | S_IWUSR,
nouveau_pm_get_perflvl, nouveau_pm_set_perflvl);

static int
nouveau_sysfs_init(struct drm_device *dev)
Expand Down Expand Up @@ -283,8 +283,6 @@ nouveau_sysfs_fini(struct drm_device *dev)
}
}



static ssize_t
nouveau_hwmon_show_temp(struct device *d, struct device_attribute *a, char *buf)
{
Expand Down Expand Up @@ -317,7 +315,7 @@ nouveau_hwmon_set_max_temp(struct device *d, struct device_attribute *a,
struct nouveau_pm_threshold_temp *temp = &pm->threshold_temp;
long value;

if (strict_strtoul(buf, 10, &value) == -EINVAL)
if (strict_strtol(buf, 10, &value) == -EINVAL)
return count;

temp->down_clock = value/1000;
Expand Down Expand Up @@ -352,7 +350,7 @@ nouveau_hwmon_set_critical_temp(struct device *d, struct device_attribute *a,
struct nouveau_pm_threshold_temp *temp = &pm->threshold_temp;
long value;

if (strict_strtoul(buf, 10, &value) == -EINVAL)
if (strict_strtol(buf, 10, &value) == -EINVAL)
return count;

temp->critical = value/1000;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "nouveau_drv.h"
#include "nouveau_pm.h"

void
static void
nouveau_temp_vbios_parse(struct drm_device *dev, u8 *temp)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/gpu/drm/nouveau/nv04_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "drmP.h"
#include "nouveau_drv.h"
#include "nouveau_hw.h"
#include "nouveau_pm.h"

struct nv04_pm_state {
struct pll_lims pll;
Expand Down

0 comments on commit 6a35e56

Please sign in to comment.