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

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.com


Signed-off-by: default avatarXu Yilun <yilun.xu@intel.com>
parent 558094cb
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -148,11 +148,12 @@ static int fpga_mgr_write_init_buf(struct fpga_manager *mgr,
	int ret;

	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);
	else
		ret = fpga_mgr_write_init(
		    mgr, info, buf, min(mgr->mops->initial_header_size, count));
	} else {
		count = min(mgr->mops->initial_header_size, count);
		ret = fpga_mgr_write_init(mgr, info, buf, count);
	}

	if (ret) {
		dev_err(&mgr->dev, "Error preparing FPGA for writing\n");
+3 −3
Original line number Diff line number Diff line
@@ -18,8 +18,8 @@
static DEFINE_IDA(fpga_region_ida);
static struct class *fpga_region_class;

struct fpga_region *fpga_region_class_find(
	struct device *start, const void *data,
struct fpga_region *
fpga_region_class_find(struct device *start, const void *data,
		       int (*match)(struct device *, const void *))
{
	struct device *dev;
+3 −3
Original line number Diff line number Diff line
@@ -189,8 +189,8 @@ static int child_regions_with_firmware(struct device_node *overlay)
 *   fpga_image_info struct if there is an image to program.
 *   error code for invalid overlay.
 */
static struct fpga_image_info *of_fpga_region_parse_ov(
						struct fpga_region *region,
static struct fpga_image_info *
of_fpga_region_parse_ov(struct fpga_region *region,
			struct device_node *overlay)
{
	struct device *dev = &region->dev;
+3 −3
Original line number Diff line number Diff line
@@ -52,8 +52,8 @@ struct fpga_region {

#define to_fpga_region(d) container_of(d, struct fpga_region, dev)

struct fpga_region *fpga_region_class_find(
	struct device *start, const void *data,
struct fpga_region *
fpga_region_class_find(struct device *start, const void *data,
		       int (*match)(struct device *, const void *));

int fpga_region_program_fpga(struct fpga_region *region);