diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-03-18 14:35:44 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-03-26 04:08:17 (GMT) |
commit | 5cfd48b21274c0dc2ec30e7997745833e6be71ad (patch) | |
tree | ac9c0ebda1bdc76e58eace9f62e3c2768766a84f | |
parent | 1f1ac3bf2a804911ad46076b10ce15364237a698 (diff) | |
download | linux-5cfd48b21274c0dc2ec30e7997745833e6be71ad.tar.xz |
drm/nv50/gpio: exclude sense value from mask when changing registers
Shouldn't effect anything, was just momentarily confusing while looking
at traces.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c b/drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c index c4c1d41..904b67f 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c +++ b/drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c @@ -79,7 +79,7 @@ nv50_gpio_drive(struct nouveau_gpio *gpio, int line, int dir, int out) if (nv50_gpio_location(line, ®, &shift)) return -EINVAL; - nv_mask(gpio, reg, 7 << shift, (((dir ^ 1) << 1) | out) << shift); + nv_mask(gpio, reg, 3 << shift, (((dir ^ 1) << 1) | out) << shift); return 0; } |