android_kernel_xiaomi_sm8350/drivers/isdn/hardware/eicon
Jiri Slaby 1ea70841f0 isdn: eicon: Use offsetof
Use offsetof instead of explicit implementation.

* fixes bug with omitted & like:
  len = (byte)(((T30_INFO *) 0)->station_id + 20)

* avoids compiler warnings with wrong sizes (pointer-to-char cast):
  len = (byte)(&(((T30_INFO *) 0)->universal_6));

* cleans up the code

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Acked-by: Armin Schindler <armin@melware.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-11-04 08:28:12 -08:00
..
adapter.h
capi20.h
capidtmf.c
capidtmf.h
capifunc.c
capifunc.h
capimain.c
cardtype.h
cp_vers.h
dadapter.c
dadapter.h
debug_if.h
debug.c drivers/isdn/hardware/icon: fix sparse warning: cast truncates bits 2009-02-27 01:00:42 -08:00
debuglib.c
debuglib.h fix similar typos to successfull 2009-01-08 08:31:15 -08:00
dfifo.h
di_dbg.h
di_defs.h
di.c isdn: eicon: fix sparse warning: make global functions static 2008-12-16 01:17:33 -08:00
di.h
did_vers.h
diddfunc.c
diva_didd.c
diva_dma.c
diva_dma.h
diva_pci.h
diva.c
diva.h
divacapi.h
divamnt.c divamnt: BKL pushdown 2008-06-20 14:05:52 -06:00
divasfunc.c
divasi.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
divasmain.c Merge commit 'v2.6.26' into bkl-removal 2008-07-14 15:29:34 -06:00
divasproc.c isdn divas: fix proc creation 2008-06-10 12:49:31 -07:00
divasync.h
dqueue.c
dqueue.h
dsp_defs.h
dsp_tst.h
dspdids.h
dsrv4bri.h
dsrv_bri.h
dsrv_pri.h
entity.h
helpers.h
idifunc.c
io.c
io.h
istream.c
Kconfig
kst_ifc.h
maintidi.c
maintidi.h
Makefile
man_defs.h
mdm_msg.h
message.c isdn: eicon: Use offsetof 2009-11-04 08:28:12 -08:00
mi_pc.h
mntfunc.c
os_4bri.c ISDN: ARRAY_SIZE changes 2009-07-25 20:23:05 +02:00
os_4bri.h
os_bri.c fix similar typos to successfull 2009-01-08 08:31:15 -08:00
os_bri.h
os_capi.h
os_pri.c fix similar typos to successfull 2009-01-08 08:31:15 -08:00
os_pri.h
pc_init.h
pc_maint.h
pc.h
pkmaint.h
platform.h
pr_pc.h
s_4bri.c
s_bri.c
s_pri.c
sdp_hdr.h
um_idi.c
um_idi.h
um_xdi.h
xdi_adapter.h
xdi_msg.h
xdi_vers.h