#ifndef DEV_H #define DEV_H #include #include "built_in.h" extern size_t device_mtu(const char *ifname); extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss); extern int __device_ifindex(const char *ifname); extern int device_hw_address(const char *ifname, uint8_t *addr, size_t len); extern int device_ifindex(const char *ifname); extern int device_type(const char *ifname); extern short device_get_flags(const char *ifname); extern void device_set_flags(const char *ifname, const short flags); extern int device_up_and_running(const char *ifname); extern u32 device_bitrate(const char *ifname); extern short device_enter_promiscuous_mode(const char *ifname); extern void device_leave_promiscuous_mode(const char *ifname, short oldflags); extern const char *device_type2str(uint16_t type); extern const char *device_addr2str(const unsigned char *addr, int alen, int type, char *buf, int blen); #endif /* DEV_H */ e8a56d'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>2016-02-23 14:16:32 +0000
committerMark Brown <broonie@kernel.org>2016-02-24 13:08:41 +0900
commit2595b7fe1aa3a1dfc47e549b39f7c35c5ce8a56d (patch)
tree02e9a39671aa8504844b8b3a67d6d58d341d5f12
parentd81221ff9406a3918084bfaed752894e82c5d44b (diff)
ASoC: arizona: Make logging of FLL calculations clearer
The debug logging of FLL calculations was confusing. Values were printed in hex without indicating this by a leading 0x, and despite these normally being required in decimal. Also where the register value isn't the actual value (it s a power-of-two or 0 means 1, 1 means 2, ...) it was unclear whether the actual or register value was shown. This patch changes the log print so that all mathematical values are shown in decimal, all register values are shown in hex with a 0x prefix, and where the register value isn't the actual integer value the decimal integer value is shown in () after the hex register value. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>