drm/nouveau: quiet static-related sparse noise
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
bfd8bd1f81
commit
cd897837ea
|
@ -48,7 +48,7 @@ extdev_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt)
|
||||||
return extdev + *hdr;
|
return extdev + *hdr;
|
||||||
}
|
}
|
||||||
|
|
||||||
u16
|
static u16
|
||||||
nvbios_extdev_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len)
|
nvbios_extdev_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len)
|
||||||
{
|
{
|
||||||
u8 hdr, cnt;
|
u8 hdr, cnt;
|
||||||
|
|
|
@ -55,7 +55,7 @@ therm_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt)
|
||||||
return therm + nv_ro08(bios, therm + 1);
|
return therm + nv_ro08(bios, therm + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
u16
|
static u16
|
||||||
nvbios_therm_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len)
|
nvbios_therm_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len)
|
||||||
{
|
{
|
||||||
u8 hdr, cnt;
|
u8 hdr, cnt;
|
||||||
|
|
|
@ -29,7 +29,7 @@ struct nv04_bus_priv {
|
||||||
struct nouveau_bus base;
|
struct nouveau_bus base;
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
static void
|
||||||
nv04_bus_intr(struct nouveau_subdev *subdev)
|
nv04_bus_intr(struct nouveau_subdev *subdev)
|
||||||
{
|
{
|
||||||
struct nouveau_bus *pbus = nouveau_bus(subdev);
|
struct nouveau_bus *pbus = nouveau_bus(subdev);
|
||||||
|
|
|
@ -175,7 +175,7 @@ nouveau_therm_fan_user_set(struct nouveau_therm *therm, int percent)
|
||||||
return nouveau_therm_fan_set(therm, true, percent);
|
return nouveau_therm_fan_set(therm, true, percent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
nouveau_therm_fan_set_defaults(struct nouveau_therm *therm)
|
nouveau_therm_fan_set_defaults(struct nouveau_therm *therm)
|
||||||
{
|
{
|
||||||
struct nouveau_therm_priv *priv = (void *)therm;
|
struct nouveau_therm_priv *priv = (void *)therm;
|
||||||
|
|
|
@ -30,7 +30,7 @@ nouveau_fannil_get(struct nouveau_therm *therm)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
nouveau_fannil_set(struct nouveau_therm *therm, int percent)
|
nouveau_fannil_set(struct nouveau_therm *therm, int percent)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
|
@ -81,7 +81,7 @@ nouveau_fantog_get(struct nouveau_therm *therm)
|
||||||
return priv->percent;
|
return priv->percent;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
nouveau_fantog_set(struct nouveau_therm *therm, int percent)
|
nouveau_fantog_set(struct nouveau_therm *therm, int percent)
|
||||||
{
|
{
|
||||||
struct nouveau_therm_priv *tpriv = (void *)therm;
|
struct nouveau_therm_priv *tpriv = (void *)therm;
|
||||||
|
|
|
@ -80,7 +80,7 @@ nv40_temp_get(struct nouveau_therm *therm)
|
||||||
return core_temp;
|
return core_temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
nv40_fan_pwm_ctrl(struct nouveau_therm *therm, int line, bool enable)
|
nv40_fan_pwm_ctrl(struct nouveau_therm *therm, int line, bool enable)
|
||||||
{
|
{
|
||||||
u32 mask = enable ? 0x80000000 : 0x0000000;
|
u32 mask = enable ? 0x80000000 : 0x0000000;
|
||||||
|
@ -93,7 +93,7 @@ nv40_fan_pwm_ctrl(struct nouveau_therm *therm, int line, bool enable)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
nv40_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty)
|
nv40_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty)
|
||||||
{
|
{
|
||||||
if (line == 2) {
|
if (line == 2) {
|
||||||
|
@ -119,7 +119,7 @@ nv40_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
nv40_fan_pwm_set(struct nouveau_therm *therm, int line, u32 divs, u32 duty)
|
nv40_fan_pwm_set(struct nouveau_therm *therm, int line, u32 divs, u32 duty)
|
||||||
{
|
{
|
||||||
if (line == 2) {
|
if (line == 2) {
|
||||||
|
|
|
@ -398,7 +398,7 @@ nouveau_drm_remove(struct pci_dev *pdev)
|
||||||
nouveau_object_debug();
|
nouveau_object_debug();
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
nouveau_do_suspend(struct drm_device *dev)
|
nouveau_do_suspend(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct nouveau_drm *drm = nouveau_drm(dev);
|
struct nouveau_drm *drm = nouveau_drm(dev);
|
||||||
|
@ -469,7 +469,7 @@ int nouveau_pmops_suspend(struct device *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
nouveau_do_resume(struct drm_device *dev)
|
nouveau_do_resume(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct nouveau_drm *drm = nouveau_drm(dev);
|
struct nouveau_drm *drm = nouveau_drm(dev);
|
||||||
|
|
Loading…
Reference in New Issue