| .. | .. |
|---|
| 330 | 330 | |
|---|
| 331 | 331 | /* method to find out whether the firmware has to be downloaded or not */ |
|---|
| 332 | 332 | static int technisat_usb2_identify_state(struct usb_device *udev, |
|---|
| 333 | | - struct dvb_usb_device_properties *props, |
|---|
| 334 | | - struct dvb_usb_device_description **desc, int *cold) |
|---|
| 333 | + const struct dvb_usb_device_properties *props, |
|---|
| 334 | + const struct dvb_usb_device_description **desc, int *cold) |
|---|
| 335 | 335 | { |
|---|
| 336 | 336 | int ret; |
|---|
| 337 | 337 | u8 *version; |
|---|
| .. | .. |
|---|
| 566 | 566 | a->fe_adap[0].fe->ops.set_voltage = technisat_usb2_set_voltage; |
|---|
| 567 | 567 | |
|---|
| 568 | 568 | /* if everything was successful assign a nice name to the frontend */ |
|---|
| 569 | | - strlcpy(a->fe_adap[0].fe->ops.info.name, a->dev->desc->name, |
|---|
| 570 | | - sizeof(a->fe_adap[0].fe->ops.info.name)); |
|---|
| 569 | + strscpy(a->fe_adap[0].fe->ops.info.name, |
|---|
| 570 | + a->dev->desc->name, |
|---|
| 571 | + sizeof(a->fe_adap[0].fe->ops.info.name)); |
|---|
| 571 | 572 | } else { |
|---|
| 572 | 573 | dvb_frontend_detach(a->fe_adap[0].fe); |
|---|
| 573 | 574 | a->fe_adap[0].fe = NULL; |
|---|
| .. | .. |
|---|
| 655 | 656 | for (i = 1; i < ARRAY_SIZE(state->buf); i++) { |
|---|
| 656 | 657 | if (buf[i] == 0xff) { |
|---|
| 657 | 658 | ev.pulse = 0; |
|---|
| 658 | | - ev.duration = 888888*2; |
|---|
| 659 | + ev.duration = 889 * 2; |
|---|
| 659 | 660 | ir_raw_event_store(d->rc_dev, &ev); |
|---|
| 660 | 661 | break; |
|---|
| 661 | 662 | } |
|---|
| 662 | 663 | |
|---|
| 663 | 664 | ev.pulse = !ev.pulse; |
|---|
| 664 | 665 | ev.duration = (buf[i] * FIRMWARE_CLOCK_DIVISOR * |
|---|
| 665 | | - FIRMWARE_CLOCK_TICK) / 1000; |
|---|
| 666 | + FIRMWARE_CLOCK_TICK) / (1000 * 1000); |
|---|
| 666 | 667 | ir_raw_event_store(d->rc_dev, &ev); |
|---|
| 667 | 668 | } |
|---|
| 668 | 669 | |
|---|