From: Uwe Hermann Date: Wed, 24 Apr 2019 16:23:11 +0000 (+0200) Subject: sysclk-sla5032: Minor asterisk placement consistency fixes. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f3178f123d12cf8bbb93819474dfe2ade88e0776;p=libsigrok.git sysclk-sla5032: Minor asterisk placement consistency fixes. --- diff --git a/src/hardware/sysclk-sla5032/api.c b/src/hardware/sysclk-sla5032/api.c index 0eb6a732..a55c9ed1 100644 --- a/src/hardware/sysclk-sla5032/api.c +++ b/src/hardware/sysclk-sla5032/api.c @@ -369,15 +369,15 @@ static int config_channel_set(const struct sr_dev_inst *sdi, } /* Derive trigger masks from the session's trigger configuration. */ -static int prepare_trigger_masks(const struct sr_dev_inst* sdi) +static int prepare_trigger_masks(const struct sr_dev_inst *sdi) { uint32_t trigger_mask, trigger_values, trigger_edge_mask; uint32_t level_bit, type_bit; - struct dev_context* devc; - struct sr_trigger* trigger; - struct sr_trigger_stage* stage; - struct sr_trigger_match* match; - const GSList* node; + struct dev_context *devc; + struct sr_trigger *trigger; + struct sr_trigger_stage *stage; + struct sr_trigger_match *match; + const GSList *node; int idx; enum sr_trigger_matches trg; diff --git a/src/hardware/sysclk-sla5032/protocol.c b/src/hardware/sysclk-sla5032/protocol.c index 46e24819..f6aabb3e 100644 --- a/src/hardware/sysclk-sla5032/protocol.c +++ b/src/hardware/sysclk-sla5032/protocol.c @@ -454,7 +454,7 @@ static int sla5032_set_read_back(const struct sr_usb_dev_inst *usb) return la_write_reg(usb, 5, 0x28); } -static int sla5032_set_pwm1(const struct sr_usb_dev_inst* usb, uint32_t hi, uint32_t lo) +static int sla5032_set_pwm1(const struct sr_usb_dev_inst *usb, uint32_t hi, uint32_t lo) { int ret; @@ -465,7 +465,7 @@ static int sla5032_set_pwm1(const struct sr_usb_dev_inst* usb, uint32_t hi, uint return la_write_reg(usb, 10, lo); } -static int sla5032_set_pwm2(const struct sr_usb_dev_inst* usb, uint32_t hi, uint32_t lo) +static int sla5032_set_pwm2(const struct sr_usb_dev_inst *usb, uint32_t hi, uint32_t lo) { int ret; @@ -476,7 +476,7 @@ static int sla5032_set_pwm2(const struct sr_usb_dev_inst* usb, uint32_t hi, uint return la_write_reg(usb, 12, lo); } -static int sla5032_write_reg14_zero(const struct sr_usb_dev_inst* usb) +static int sla5032_write_reg14_zero(const struct sr_usb_dev_inst *usb) { return la_write_reg(usb, 14, 0); } @@ -575,7 +575,7 @@ static unsigned char *load_bitstream(struct sr_context *ctx, return fw_data; } -static int sla5032_is_configured(const struct sr_usb_dev_inst* usb, gboolean *is_configured) +static int sla5032_is_configured(const struct sr_usb_dev_inst *usb, gboolean *is_configured) { int ret; uint32_t reg2; @@ -870,7 +870,7 @@ SR_PRIV int sla5032_start_acquisition(const struct sr_dev_inst *sdi) { struct dev_context *devc; struct sr_usb_dev_inst *usb; - struct sr_trigger* trigger; + struct sr_trigger *trigger; int ret; enum { poll_interval_ms = 100 }; uint64_t pre, post; diff --git a/src/hardware/sysclk-sla5032/protocol.h b/src/hardware/sysclk-sla5032/protocol.h index 20369cd4..d345a5cb 100644 --- a/src/hardware/sysclk-sla5032/protocol.h +++ b/src/hardware/sysclk-sla5032/protocol.h @@ -107,6 +107,6 @@ struct dev_context { }; SR_PRIV int sla5032_start_acquisition(const struct sr_dev_inst *sdi); -SR_PRIV int sla5032_apply_fpga_config(const struct sr_dev_inst* sdi); +SR_PRIV int sla5032_apply_fpga_config(const struct sr_dev_inst *sdi); #endif