1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/drivers
Amaury Pouly d7871914ac Fix dangerous casts
On Windows 64-bit, the size of long is 32-bit, thus any pointer to long cast is
not valid. In any case, one should use intptr_t and ptrdiff_t when casting
to integers. This commit attempts to fix all instances reported by GCC.
When relevant, I replaced code by the macros PTR_ADD, ALIGN_UP from system.h

Change-Id: I2273b0e8465d3c4689824717ed5afa5ed238a2dc
2017-02-04 17:24:47 +01:00
..
audio wm8975: document audiohw settings 2016-12-12 13:13:13 +01:00
rtc Move intrinsic RTC implmentation differences to driver files 2017-01-26 23:07:49 -05:00
tuner Disable detection of fm radio for the YH920, it's pointless. 2014-07-26 15:36:12 +00:00
adc-as3514.c AMS: Return ascodec to interrupt-based I2C2 driver 2017-01-25 00:05:13 +01:00
ata.c Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ata_flash.c Limit more variables to file scope 2015-01-11 21:40:51 +01:00
button.c Fix dumb typo in button.c. 2017-01-21 12:16:27 -05:00
eeprom_24cxx.c Various files: make function implementations consistent with their declaration in the header file or static if 2009-01-31 23:51:11 +00:00
fat.c Do some debug and preparatory work for ramcache and playlist 2017-01-17 14:35:36 -05:00
fmradio.c
generic_i2c.c Apply FS #11423 - Use udelay in AMS driver for FM radio I2C 2010-06-21 21:41:07 +00:00
isp1362.c
isp1583.c creative zvm isp1583 defines: move to isp1583.h 2011-12-31 18:44:32 +00:00
lcd-1bit-vert.c scroll_engine: Rename scroll_stop* functions to be more consistent with the lcd api. 2013-12-14 23:11:30 +01:00
lcd-2bit-horz.c Fix more reds. 2013-12-15 00:47:21 +01:00
lcd-2bit-vert.c Fix reds. Also apply the new scrolling to lcd charcell (this even uncovered an 2013-12-15 00:38:48 +01:00
lcd-2bit-vi.c Fix more reds. 2013-12-15 00:47:21 +01:00
lcd-16bit-common.c Fix dangerous casts 2017-02-04 17:24:47 +01:00
lcd-16bit-vert.c Fix some build errors and warnings. 2014-06-21 00:49:05 +02:00
lcd-16bit.c Fix dangerous casts 2017-02-04 17:24:47 +01:00
lcd-24bit.c Fix some build errors and warnings. 2014-06-21 00:49:05 +02:00
lcd-bitmap-common.c put_line/scrolling: Make the scroll engine inform custom scrollers about start/stop of scrolling. 2014-01-12 01:34:06 +01:00
lcd-charcell.c charcell: Fix lockup after some scrolling lines. 2014-01-26 17:56:55 +01:00
lcd-charset-player.c Limit more variables to file scope 2015-01-11 21:40:51 +01:00
lcd-color-common.c Fix dangerous casts 2017-02-04 17:24:47 +01:00
lcd-memframe.c lcd drivers: Convert lcd_[remote_]framebuffer to a pointer 2012-02-28 11:44:59 +11:00
lcd-remote-1bit-v.c lcd drivers: Convert lcd_[remote_]framebuffer to a pointer 2012-02-28 11:44:59 +11:00
lcd-remote-2bit-vi.c lcd drivers: Convert lcd_[remote_]framebuffer to a pointer 2012-02-28 11:44:59 +11:00
lcd-scroll.c put_line/scrolling: Make the scroll engine inform custom scrollers about start/stop of scrolling. 2014-01-12 01:34:06 +01:00
led.c YH92x: Use the led near the lcd as the ATA led, instead of shine all the time. 2014-06-18 18:06:17 +00:00
m5636.c
m66591.c usb-target.h: remove 2011-12-31 18:44:55 +00:00
nand_id.c TCC NAND: The BLOCKS_PER_SEGMENT define was actually the number of planes mentioned in the Samsung NAND datasheet. Add this to the nand_id struct, so that it can be runtime detected (required for some D2s to boot). Use the struct directly instead of making a local copy, and format the nand_info table to 80 columns. 2009-03-02 23:36:12 +00:00
pca9555.c Introduce HiFi E.T MA9 port. 2013-05-06 14:09:24 +04:00
pcf50605.c
pcf50606.c tcc77x targets: various minor cleanups 2010-08-28 10:17:19 +00:00
pcf50635.c Commit FS#12352 by Stanislav Chizhik. Add support for the PCF50635. Enables detection of USB power sources. 2011-11-15 20:37:47 +00:00
qt1106.c
ramdisk.c Make a few local variables static 2015-01-11 18:02:43 +01:00
rds.c Fix uninitialized variable in decoding of RDS radio text 2012-11-09 19:09:39 +01:00
sd.c Cleanup MV/MD macros a little. 2013-08-17 12:18:22 -04:00
serial.c Add Serial Port 1 support for iPod Photo/Color/4G/Mini2G 2013-04-25 21:02:09 +02:00
sw_i2c.c
synaptics-mep.c HDD6330: introduce a new button (BUTTON_TAP), based on the hardware support for gestures. From now on some things are accessible by tapping on the vertical scroll strip. Reorganize, fix and remap some of the keymaps, add missing keymap for the recording. 2011-12-03 23:13:17 +00:00
touchpad.c touch devices: Disable touch on softlock. 2013-09-05 20:02:07 +02:00
touchscreen.c Introducing Targets iBasso DX50 & iBasso DX90 2014-09-18 18:19:01 +02:00
tsc200x.c Touchscreen support for newer Cowon D2+ hardware revisions (using TSC200x touchscreen controller). 2009-10-15 20:13:29 +00:00
tsc2100.c TSC2100: Sample multiple times and provide an average to clean up touch detection. 2011-02-06 19:26:31 +00:00