}
/* 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;
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;
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;
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);
}
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;
{
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;