Commit dc19d43f authored by Robert Deal's avatar Robert Deal Committed by Greg Kroah-Hartman

staging: gasket: formatting fixes

Reformat arguments in a few functions in gasket_page_table.c to better
follow linux kernel formatting standards.
Signed-off-by: default avatarRobert Deal <robert.edward.deal@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 46f9172e
...@@ -1088,8 +1088,8 @@ void gasket_page_table_reset(struct gasket_page_table *pg_tbl) ...@@ -1088,8 +1088,8 @@ void gasket_page_table_reset(struct gasket_page_table *pg_tbl)
} }
/* See gasket_page_table.h for description. */ /* See gasket_page_table.h for description. */
int gasket_page_table_lookup_page( int gasket_page_table_lookup_page(struct gasket_page_table *pg_tbl,
struct gasket_page_table *pg_tbl, ulong dev_addr, struct page **ppage, ulong dev_addr, struct page **ppage,
ulong *poffset) ulong *poffset)
{ {
uint page_num; uint page_num;
...@@ -1134,8 +1134,8 @@ int gasket_page_table_lookup_page( ...@@ -1134,8 +1134,8 @@ int gasket_page_table_lookup_page(
} }
/* See gasket_page_table.h for description. */ /* See gasket_page_table.h for description. */
bool gasket_page_table_are_addrs_bad( bool gasket_page_table_are_addrs_bad(struct gasket_page_table *pg_tbl,
struct gasket_page_table *pg_tbl, ulong host_addr, ulong dev_addr, ulong host_addr, ulong dev_addr,
ulong bytes) ulong bytes)
{ {
if (host_addr & (PAGE_SIZE - 1)) { if (host_addr & (PAGE_SIZE - 1)) {
...@@ -1150,8 +1150,8 @@ bool gasket_page_table_are_addrs_bad( ...@@ -1150,8 +1150,8 @@ bool gasket_page_table_are_addrs_bad(
EXPORT_SYMBOL(gasket_page_table_are_addrs_bad); EXPORT_SYMBOL(gasket_page_table_are_addrs_bad);
/* See gasket_page_table.h for description. */ /* See gasket_page_table.h for description. */
bool gasket_page_table_is_dev_addr_bad( bool gasket_page_table_is_dev_addr_bad(struct gasket_page_table *pg_tbl,
struct gasket_page_table *pg_tbl, ulong dev_addr, ulong bytes) ulong dev_addr, ulong bytes)
{ {
uint num_pages = bytes / PAGE_SIZE; uint num_pages = bytes / PAGE_SIZE;
...@@ -1226,9 +1226,8 @@ int gasket_page_table_system_status(struct gasket_page_table *page_table) ...@@ -1226,9 +1226,8 @@ int gasket_page_table_system_status(struct gasket_page_table *page_table)
} }
/* Record the host_addr to coherent dma memory mapping. */ /* Record the host_addr to coherent dma memory mapping. */
int gasket_set_user_virt( int gasket_set_user_virt(struct gasket_dev *gasket_dev, u64 size,
struct gasket_dev *gasket_dev, u64 size, dma_addr_t dma_address, dma_addr_t dma_address, ulong vma)
ulong vma)
{ {
int j; int j;
struct gasket_page_table *pg_tbl; struct gasket_page_table *pg_tbl;
...@@ -1346,8 +1345,7 @@ int gasket_free_coherent_memory(struct gasket_dev *gasket_dev, u64 size, ...@@ -1346,8 +1345,7 @@ int gasket_free_coherent_memory(struct gasket_dev *gasket_dev, u64 size,
} }
/* Release all coherent memory. */ /* Release all coherent memory. */
void gasket_free_coherent_memory_all( void gasket_free_coherent_memory_all(struct gasket_dev *gasket_dev, u64 index)
struct gasket_dev *gasket_dev, u64 index)
{ {
if (!gasket_dev->page_table[index]) if (!gasket_dev->page_table[index])
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment