Commit 57ce2e40 authored by Nava kishore Manne's avatar Nava kishore Manne Committed by Xu Yilun

fpga: fix for coding style issues

fixes the below checks reported by checkpatch.pl:
- Lines should not end with a '('
- Alignment should match open parenthesis
Signed-off-by: default avatarNava kishore Manne <nava.manne@xilinx.com>
Link: https://lore.kernel.org/r/20220423170235.2115479-3-nava.manne@xilinx.comSigned-off-by: default avatarXu Yilun <yilun.xu@intel.com>
parent 558094cb
...@@ -148,11 +148,12 @@ static int fpga_mgr_write_init_buf(struct fpga_manager *mgr, ...@@ -148,11 +148,12 @@ static int fpga_mgr_write_init_buf(struct fpga_manager *mgr,
int ret; int ret;
mgr->state = FPGA_MGR_STATE_WRITE_INIT; mgr->state = FPGA_MGR_STATE_WRITE_INIT;
if (!mgr->mops->initial_header_size) if (!mgr->mops->initial_header_size) {
ret = fpga_mgr_write_init(mgr, info, NULL, 0); ret = fpga_mgr_write_init(mgr, info, NULL, 0);
else } else {
ret = fpga_mgr_write_init( count = min(mgr->mops->initial_header_size, count);
mgr, info, buf, min(mgr->mops->initial_header_size, count)); ret = fpga_mgr_write_init(mgr, info, buf, count);
}
if (ret) { if (ret) {
dev_err(&mgr->dev, "Error preparing FPGA for writing\n"); dev_err(&mgr->dev, "Error preparing FPGA for writing\n");
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
static DEFINE_IDA(fpga_region_ida); static DEFINE_IDA(fpga_region_ida);
static struct class *fpga_region_class; static struct class *fpga_region_class;
struct fpga_region *fpga_region_class_find( struct fpga_region *
struct device *start, const void *data, fpga_region_class_find(struct device *start, const void *data,
int (*match)(struct device *, const void *)) int (*match)(struct device *, const void *))
{ {
struct device *dev; struct device *dev;
......
...@@ -189,9 +189,9 @@ static int child_regions_with_firmware(struct device_node *overlay) ...@@ -189,9 +189,9 @@ static int child_regions_with_firmware(struct device_node *overlay)
* fpga_image_info struct if there is an image to program. * fpga_image_info struct if there is an image to program.
* error code for invalid overlay. * error code for invalid overlay.
*/ */
static struct fpga_image_info *of_fpga_region_parse_ov( static struct fpga_image_info *
struct fpga_region *region, of_fpga_region_parse_ov(struct fpga_region *region,
struct device_node *overlay) struct device_node *overlay)
{ {
struct device *dev = &region->dev; struct device *dev = &region->dev;
struct fpga_image_info *info; struct fpga_image_info *info;
......
...@@ -52,9 +52,9 @@ struct fpga_region { ...@@ -52,9 +52,9 @@ struct fpga_region {
#define to_fpga_region(d) container_of(d, struct fpga_region, dev) #define to_fpga_region(d) container_of(d, struct fpga_region, dev)
struct fpga_region *fpga_region_class_find( struct fpga_region *
struct device *start, const void *data, fpga_region_class_find(struct device *start, const void *data,
int (*match)(struct device *, const void *)); int (*match)(struct device *, const void *));
int fpga_region_program_fpga(struct fpga_region *region); int fpga_region_program_fpga(struct fpga_region *region);
......
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