summaryrefslogtreecommitdiff
path: root/include/uapi/asm-generic/swab.h
blob: a8e9029d9eba6bd87e0a08cd4bfcb78f3f177dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _ASM_GENERIC_SWAB_H
#define _ASM_GENERIC_SWAB_H

#include <asm/bitsperlong.h>

/*
 * 32 bit architectures typically (but not always) want to
 * set __SWAB_64_THRU_32__. In user space, this is only
 * valid if the compiler supports 64 bit data types.
 */

#if __BITS_PER_LONG == 32
#if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
#define __SWAB_64_THRU_32__
#endif
#endif

#endif /* _ASM_GENERIC_SWAB_H */
ijmans <mike.looijmans@topic.nl>2017-01-16 15:49:38 +0100 committerWolfram Sang <wsa@the-dreams.de>2017-01-25 22:07:40 +0100 commit0e1929dedea36781e25902118c93edd8d8f09af1 (patch) tree5e353f42c88f892c20528b8a4c28856919594944 /include/dt-bindings/gpio/meson8-gpio.h parent7a308bb3016f57e5be11a677d15b821536419d36 (diff)
i2c: i2c-cadence: Initialize configuration before probing devices
The cadence I2C driver calls cdns_i2c_writereg(..) to setup a workaround in the controller, but did so after calling i2c_add_adapter() which starts probing devices on the bus. Change the order so that the configuration is completely finished before using the adapter. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/dt-bindings/gpio/meson8-gpio.h')