X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmotech-lps-30x%2Fapi.c;h=7f9c33f68d43943fb0fc47cdf6394bb2fe3b61cb;hb=c50805d59ce85e00ef263c0a1edad2487bb8a9fe;hp=cee97b575f909fee37ae44832a5fe9a267a95629;hpb=6525d819eef098a43b1f438ae4af50e67c9c4335;p=libsigrok.git diff --git a/src/hardware/motech-lps-30x/api.c b/src/hardware/motech-lps-30x/api.c index cee97b57..7f9c33f6 100644 --- a/src/hardware/motech-lps-30x/api.c +++ b/src/hardware/motech-lps-30x/api.c @@ -242,7 +242,7 @@ SR_PRIV int lps_process_status(struct sr_dev_inst *sdi, int stat) struct dev_context *devc; int tracking_mode; - devc = (struct dev_context *)sdi->priv; + devc = sdi->priv; sr_spew("Status: %d", stat); devc->channel_status[0].cc_mode = (stat & 0x01) != 0; @@ -289,7 +289,7 @@ SR_PRIV int lps_query_status(struct sr_dev_inst *sdi) int stat, ret; struct dev_context *devc; - devc = (struct dev_context *)sdi->priv; + devc = sdi->priv; devc->req_sent_at = g_get_real_time();