Commit e3d49392 authored by Lorenzo Pieralisi's avatar Lorenzo Pieralisi

ACPI/IORT: Improve functions return type/storage class specifier indentation

Some functions definition indentations are using a style that is frowned
upon with return value type/storage class specifier in a separate line.

Reindent the function definitions to fix them.
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: default avatarHanjun Guo <hanjun.guo@linaro.org>
Cc: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Sudeep Holla <sudeep.holla@arm.com>
parent 75808131
...@@ -88,8 +88,8 @@ static inline int iort_set_fwnode(struct acpi_iort_node *iort_node, ...@@ -88,8 +88,8 @@ static inline int iort_set_fwnode(struct acpi_iort_node *iort_node,
* *
* Returns: fwnode_handle pointer on success, NULL on failure * Returns: fwnode_handle pointer on success, NULL on failure
*/ */
static inline static inline struct fwnode_handle *iort_get_fwnode(
struct fwnode_handle *iort_get_fwnode(struct acpi_iort_node *node) struct acpi_iort_node *node)
{ {
struct iort_fwnode *curr; struct iort_fwnode *curr;
struct fwnode_handle *fwnode = NULL; struct fwnode_handle *fwnode = NULL;
...@@ -306,8 +306,7 @@ static int iort_id_map(struct acpi_iort_id_mapping *map, u8 type, u32 rid_in, ...@@ -306,8 +306,7 @@ static int iort_id_map(struct acpi_iort_id_mapping *map, u8 type, u32 rid_in,
return 0; return 0;
} }
static static struct acpi_iort_node *iort_node_get_id(struct acpi_iort_node *node,
struct acpi_iort_node *iort_node_get_id(struct acpi_iort_node *node,
u32 *id_out, int index) u32 *id_out, int index)
{ {
struct acpi_iort_node *parent; struct acpi_iort_node *parent;
...@@ -392,9 +391,8 @@ static struct acpi_iort_node *iort_node_map_id(struct acpi_iort_node *node, ...@@ -392,9 +391,8 @@ static struct acpi_iort_node *iort_node_map_id(struct acpi_iort_node *node,
return NULL; return NULL;
} }
static static struct acpi_iort_node *iort_node_map_platform_id(
struct acpi_iort_node *iort_node_map_platform_id(struct acpi_iort_node *node, struct acpi_iort_node *node, u32 *id_out, u8 type_mask,
u32 *id_out, u8 type_mask,
int index) int index)
{ {
struct acpi_iort_node *parent; struct acpi_iort_node *parent;
...@@ -623,14 +621,14 @@ static inline bool iort_iommu_driver_enabled(u8 type) ...@@ -623,14 +621,14 @@ static inline bool iort_iommu_driver_enabled(u8 type)
} }
#ifdef CONFIG_IOMMU_API #ifdef CONFIG_IOMMU_API
static inline static inline const struct iommu_ops *iort_fwspec_iommu_ops(
const struct iommu_ops *iort_fwspec_iommu_ops(struct iommu_fwspec *fwspec) struct iommu_fwspec *fwspec)
{ {
return (fwspec && fwspec->ops) ? fwspec->ops : NULL; return (fwspec && fwspec->ops) ? fwspec->ops : NULL;
} }
static inline static inline int iort_add_device_replay(const struct iommu_ops *ops,
int iort_add_device_replay(const struct iommu_ops *ops, struct device *dev) struct device *dev)
{ {
int err = 0; int err = 0;
...@@ -640,11 +638,11 @@ int iort_add_device_replay(const struct iommu_ops *ops, struct device *dev) ...@@ -640,11 +638,11 @@ int iort_add_device_replay(const struct iommu_ops *ops, struct device *dev)
return err; return err;
} }
#else #else
static inline static inline const struct iommu_ops *iort_fwspec_iommu_ops(
const struct iommu_ops *iort_fwspec_iommu_ops(struct iommu_fwspec *fwspec) struct iommu_fwspec *fwspec)
{ return NULL; } { return NULL; }
static inline static inline int iort_add_device_replay(const struct iommu_ops *ops,
int iort_add_device_replay(const struct iommu_ops *ops, struct device *dev) struct device *dev)
{ return 0; } { return 0; }
#endif #endif
...@@ -1077,8 +1075,8 @@ static const struct iort_iommu_config iort_arm_smmu_cfg __initconst = { ...@@ -1077,8 +1075,8 @@ static const struct iort_iommu_config iort_arm_smmu_cfg __initconst = {
.iommu_init_resources = arm_smmu_init_resources .iommu_init_resources = arm_smmu_init_resources
}; };
static __init static __init const struct iort_iommu_config *iort_get_iommu_cfg(
const struct iort_iommu_config *iort_get_iommu_cfg(struct acpi_iort_node *node) struct acpi_iort_node *node)
{ {
switch (node->type) { switch (node->type) {
case ACPI_IORT_NODE_SMMU_V3: case ACPI_IORT_NODE_SMMU_V3:
......
...@@ -49,8 +49,8 @@ static inline void acpi_configure_pmsi_domain(struct device *dev) { } ...@@ -49,8 +49,8 @@ static inline void acpi_configure_pmsi_domain(struct device *dev) { }
/* IOMMU interface */ /* IOMMU interface */
static inline void iort_dma_setup(struct device *dev, u64 *dma_addr, static inline void iort_dma_setup(struct device *dev, u64 *dma_addr,
u64 *size) { } u64 *size) { }
static inline static inline const struct iommu_ops *iort_iommu_configure(
const struct iommu_ops *iort_iommu_configure(struct device *dev) struct device *dev)
{ return NULL; } { return NULL; }
#endif #endif
......
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