summaryrefslogtreecommitdiff
path: root/src/reg_dumper/gtt.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-10-06 16:30:08 -0700
committerEric Anholt <eric@anholt.net>2009-10-06 17:10:31 -0700
commit8ae0e44e42db645abe6d385f561260d2ae4a1960 (patch)
tree2002c65e2d302a32ec5d0b19a8708c3c7264b7c6 /src/reg_dumper/gtt.c
parentb9b159c49854d8d9d2207946bb583537bb0d48d6 (diff)
Move to kernel coding style.
We've talked about doing this since the start of the project, putting it off until "some convenient time". Just after removing a third of the driver seems like a convenient time, when backporting's probably not happening much anyway.
Diffstat (limited to 'src/reg_dumper/gtt.c')
-rw-r--r--src/reg_dumper/gtt.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/reg_dumper/gtt.c b/src/reg_dumper/gtt.c
index c3316017..241e5e4d 100644
--- a/src/reg_dumper/gtt.c
+++ b/src/reg_dumper/gtt.c
@@ -57,13 +57,13 @@ int main(int argc, char **argv)
else if (IS_I965G(pI830))
gtt = (unsigned char *)(pI830->mmio + KB(512));
else {
- /* 915/945 chips has GTT range in bar 3*/
+ /* 915/945 chips has GTT range in bar 3 */
int err = 0;
- err = pci_device_map_range (pI830->PciInfo,
- pI830->PciInfo->regions[3].base_addr,
- pI830->PciInfo->regions[3].size,
- PCI_DEV_MAP_FLAG_WRITABLE,
- (void **)&gtt);
+ err = pci_device_map_range(pI830->PciInfo,
+ pI830->PciInfo->regions[3].base_addr,
+ pI830->PciInfo->regions[3].size,
+ PCI_DEV_MAP_FLAG_WRITABLE,
+ (void **)&gtt);
if (err != 0) {
fprintf(stderr, "mapping GTT bar failed\n");
exit(1);
@@ -105,8 +105,7 @@ int main(int argc, char **argv)
}
if (constant_length > 0) {
printf("0x%08x - 0x%08x: constant 0x%08x\n",
- start, end - KB(4),
- start_pte);
+ start, end - KB(4), start_pte);
start = end - KB(4);
continue;
}