summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/pcd/pwm.c
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 04:42:17 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 04:42:17 +0000
commit83c18361d821819208e5d8024e8b557c359fdc7d (patch)
tree78bf53a2540e36207638c4735b116432299a998d /openpcd/firmware/src/pcd/pwm.c
parent3a98ae12852a75f2331571fafb148f55ee073969 (diff)
- cosmetic cleanup
git-svn-id: https://svn.openpcd.org:2342/trunk@146 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd/firmware/src/pcd/pwm.c')
-rw-r--r--openpcd/firmware/src/pcd/pwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpcd/firmware/src/pcd/pwm.c b/openpcd/firmware/src/pcd/pwm.c
index ef1ee3f..e05699b 100644
--- a/openpcd/firmware/src/pcd/pwm.c
+++ b/openpcd/firmware/src/pcd/pwm.c
@@ -107,7 +107,7 @@ void pwm_duty_set_percent(int channel, u_int16_t duty)
static int pwm_usb_in(struct req_ctx *rctx)
{
struct openpcd_hdr *poh = (struct openpcd_hdr *) &rctx->rx.data[0];
- struct openpcd_hdr *pih = (struct openpcd_hdr *) &rctx->tx.data[0];
+ /* struct openpcd_hdr *pih = (struct openpcd_hdr *) &rctx->tx.data[0]; */
u_int32_t *freq;
switch (poh->cmd) {
@@ -126,7 +126,7 @@ static int pwm_usb_in(struct req_ctx *rctx)
case OPENPCD_CMD_PWM_FREQ_SET:
if (rctx->rx.tot_len < sizeof(*poh)+4)
break;
- freq = (void *) poh + sizeof(*poh);
+ freq = (unsigned char *) poh + sizeof(*poh);
pwm_freq_set(0, *freq);
break;
case OPENPCD_CMD_PWM_FREQ_GET:
personal git repositories of Harald Welte. Your mileage may vary