diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-07 12:18:53 -0800 |
---|---|---|
committer | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-09 17:18:42 +0100 |
commit | 708fc274b54dfd13fb83edae17cea9ead0a0f2be (patch) | |
tree | 12c20ab96d4dedcdb0224d37168d4f893513180b /src/include/memrange.h | |
parent | bb4ae07417c9b3be1af500a62514a2d42467cfb0 (diff) |
src/include: Indent code using tabs
Fix the following error and warning detected by checkpatch.pl:
ERROR: code indent should use tabs where possible
WARNING: please, no spaces at the start of a line
TEST=Build and run on Galileo Gen2
Change-Id: I487771b8f4d7e104457116b772cd32df5cd721a6
Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18646
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include/memrange.h')
-rw-r--r-- | src/include/memrange.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/include/memrange.h b/src/include/memrange.h index 759f8f5152..bf6b8e47e5 100644 --- a/src/include/memrange.h +++ b/src/include/memrange.h @@ -73,7 +73,7 @@ static inline unsigned long range_entry_tag(const struct range_entry *r) } static inline void range_entry_update_tag(struct range_entry *r, - unsigned long new_tag) + unsigned long new_tag) { r->tag = new_tag; } @@ -89,14 +89,14 @@ static inline void range_entry_update_tag(struct range_entry *r, /* Initialize memranges structure providing an optional array of range_entry * to use as the free list. */ void memranges_init_empty(struct memranges *ranges, struct range_entry *free, - size_t num_free); + size_t num_free); /* Initialize and fill a memranges structure according to the * mask and match type for all memory resources. Tag each entry with the * specified type. */ void memranges_init(struct memranges *ranges, - unsigned long mask, unsigned long match, - unsigned long tag); + unsigned long mask, unsigned long match, + unsigned long tag); /* Remove and free all entries within the memranges structure. */ void memranges_teardown(struct memranges *ranges); @@ -107,8 +107,8 @@ void memranges_teardown(struct memranges *ranges); * memranges_add_resources(range, IORESOURCE_CACHEABLE, * IORESROUCE_CACHEABLE, my_cacheable_tag); */ void memranges_add_resources(struct memranges *ranges, - unsigned long mask, unsigned long match, - unsigned long tag); + unsigned long mask, unsigned long match, + unsigned long tag); /* Add memory resources that match with the corresponding mask and match but * also provide filter as additional check. The filter will return non-zero @@ -119,31 +119,31 @@ void memranges_add_resources(struct memranges *ranges, * IORESROUCE_CACHEABLE, my_cacheable_tag, filter); */ typedef int (*memrange_filter_t)(struct device *dev, struct resource *res); void memranges_add_resources_filter(struct memranges *ranges, - unsigned long mask, unsigned long match, - unsigned long tag, - memrange_filter_t filter); + unsigned long mask, unsigned long match, + unsigned long tag, + memrange_filter_t filter); /* Fill all address ranges up to limit (exclusive) not covered by an entry by * inserting new entries with the provided tag. */ void memranges_fill_holes_up_to(struct memranges *ranges, - resource_t limit, unsigned long tag); + resource_t limit, unsigned long tag); /* Create a hole in the range by deleting/modifying entries that overlap with * the region specified by base and size. */ void memranges_create_hole(struct memranges *ranges, - resource_t base, resource_t size); + resource_t base, resource_t size); /* Insert a resource to the given memranges. All existing ranges * covered by range specified by base and size will be removed before a * new one is added. */ void memranges_insert(struct memranges *ranges, - resource_t base, resource_t size, unsigned long tag); + resource_t base, resource_t size, unsigned long tag); /* Update all entries with old_tag to new_tag. */ void memranges_update_tag(struct memranges *ranges, unsigned long old_tag, - unsigned long new_tag); + unsigned long new_tag); /* Returns next entry after the provided entry. NULL if r is last. */ struct range_entry *memranges_next_entry(struct memranges *ranges, - const struct range_entry *r); + const struct range_entry *r); #endif /* MEMRANGE_H_ */ |