summaryrefslogtreecommitdiff
path: root/tstamping.h
blob: ccc642e32c20c75b8e722222003081aa11c5a9cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef TSTAMPING_H
#define TSTAMPING_H

#include "config.h"

#ifdef HAVE_HARDWARE_TIMESTAMPING
extern int set_sockopt_hwtimestamp(int sock, const char *dev);
#else
static inline int set_sockopt_hwtimestamp(int sock, const char *dev)
{
	return -1;
}
#endif

#endif /* TSTAMPING_H */
diff
authorVivek Gautam <vivek.gautam@codeaurora.org>2017-01-04 16:18:09 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-04 18:22:47 +0100
commit01d0d2c42a14cee8f619d3e9d571ce3469f5ef51 (patch)
tree3d0e97d8e9686e4a453983312c5cdc73d4753847 /drivers/usb
parente09ee853c92011860a4bd2fbdf6126f60fc16bd3 (diff)
nvmem: qfprom: Allow single byte accesses for read/write
The nvmem core driver supports to read and write single byte. So, allow qfprom to support this feature. This change helps in extracting a required value based on bit-offset and number of bits for the required value in the nvmem cell. Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')