WSL2-Linux-Kernel/drivers/video/via
Alexey Dobriyan 33ee3b2e2e kstrto*: converting strings to integers done (hopefully) right
1. simple_strto*() do not contain overflow checks and crufty,
   libc way to indicate failure.
2. strict_strto*() also do not have overflow checks but the name and
   comments pretend they do.
3. Both families have only "long long" and "long" variants,
   but users want strtou8()
4. Both "simple" and "strict" prefixes are wrong:
   Simple doesn't exactly say what's so simple, strict should not exist
   because conversion should be strict by default.

The solution is to use "k" prefix and add convertors for more types.
Enter
	kstrtoull()
	kstrtoll()
	kstrtoul()
	kstrtol()
	kstrtouint()
	kstrtoint()

	kstrtou64()
	kstrtos64()
	kstrtou32()
	kstrtos32()
	kstrtou16()
	kstrtos16()
	kstrtou8()
	kstrtos8()

Include runtime testsuite (somewhat incomplete) as well.

strict_strto*() become deprecated, stubbed to kstrto*() and
eventually will be removed altogether.

Use kstrto*() in code today!

Note: on some archs _kstrtoul() and _kstrtol() are left in tree, even if
      they'll be unused at runtime. This is temporarily solution,
      because I don't want to hardcode list of archs where these
      functions aren't needed. Current solution with sizeof() and
      __alignof__ at least always works.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-03-22 17:44:14 -07:00
..
Makefile viafb: vt1636 cleanup 2010-09-24 02:15:05 +00:00
accel.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 2010-10-28 09:35:11 -07:00
accel.h viafb: fix hardware acceleration for suspend & resume 2010-10-24 13:04:53 +00:00
chip.h viafb: strip some structures 2011-03-09 18:58:30 +00:00
debug.h viafb: chip.h, debug.h 2008-10-16 11:21:41 -07:00
dvi.c viafb: remove duplicated clock storage 2011-03-12 10:22:06 +00:00
dvi.h viafb: propagate __init and __devinit 2010-09-24 02:14:46 +00:00
global.c viafb: make some variables a bit less global 2010-03-12 15:52:33 -08:00
global.h viafb: vt1636 cleanup 2010-09-24 02:15:05 +00:00
hw.c Merge branch 'viafb-pll' into viafb-next 2011-03-12 21:54:56 +00:00
hw.h viafb: always return the best possible clock 2011-03-12 10:22:00 +00:00
ioctl.c viafb: reduce viafb_set_iga_path usage 2010-09-24 02:14:48 +00:00
ioctl.h viafb: remove ioctls which break the framebuffer interface 2010-07-23 14:43:05 +00:00
lcd.c Merge branch 'viafb-pll' into viafb-next 2011-03-12 21:54:56 +00:00
lcd.h viafb: propagate __init and __devinit 2010-09-24 02:14:46 +00:00
share.h viafb: remove duplicated clock storage 2011-03-12 10:22:06 +00:00
tblDPASetting.c viafb: kill lcd_panel_id 2011-03-09 18:58:26 +00:00
tblDPASetting.h viafb: kill lcd_panel_id 2011-03-09 18:58:26 +00:00
via-core.c Merge branch 'viafb-next' of git://github.com/schandinat/linux-2.6 2010-11-10 12:04:41 +09:00
via-gpio.c viafb: suspend/resume for GPIOs 2010-11-09 16:18:29 +00:00
via_i2c.c video via: make local variables static 2011-03-09 17:06:29 +00:00
via_modesetting.c viafb: move some include files to include/linux 2010-05-11 16:07:59 -06:00
via_modesetting.h viafb: move some modesetting functions to a seperate file 2010-05-07 17:17:38 -06:00
via_utility.c viafb: move some include files to include/linux 2010-05-11 16:07:59 -06:00
via_utility.h viafb: remove dead code 2010-03-12 15:52:33 -08:00
viafbdev.c video via: make local variables static 2011-03-09 17:06:29 +00:00
viafbdev.h kstrto*: converting strings to integers done (hopefully) right 2011-03-22 17:44:14 -07:00
viamode.c Merge branch 'viafb-pll' into viafb-next 2011-03-12 21:54:56 +00:00
viamode.h viafb: remove duplicated clock information 2011-03-12 10:21:54 +00:00
vt1636.c viafb: kill lcd_panel_id 2011-03-09 18:58:26 +00:00
vt1636.h viafb: rework the I2C support in the VIA framebuffer driver 2010-04-27 13:01:45 -06:00