#ifndef __UDF_ENDIAN_H #define __UDF_ENDIAN_H #include #include static inline struct kernel_lb_addr lelb_to_cpu(struct lb_addr in) { struct kernel_lb_addr out; out.logicalBlockNum = le32_to_cpu(in.logicalBlockNum); out.partitionReferenceNum = le16_to_cpu(in.partitionReferenceNum); return out; } static inline struct lb_addr cpu_to_lelb(struct kernel_lb_addr in) { struct lb_addr out; out.logicalBlockNum = cpu_to_le32(in.logicalBlockNum); out.partitionReferenceNum = cpu_to_le16(in.partitionReferenceNum); return out; } static inline struct short_ad lesa_to_cpu(struct short_ad in) { struct short_ad out; out.extLength = le32_to_cpu(in.extLength); out.extPosition = le32_to_cpu(in.extPosition); return out; } static inline struct short_ad cpu_to_lesa(struct short_ad in) { struct short_ad out; out.extLength = cpu_to_le32(in.extLength); out.extPosition = cpu_to_le32(in.extPosition); return out; } static inline struct kernel_long_ad lela_to_cpu(struct long_ad in) { struct kernel_long_ad out; out.extLength = le32_to_cpu(in.extLength); out.extLocation = lelb_to_cpu(in.extLocation); return out; } static inline struct long_ad cpu_to_lela(struct kernel_long_ad in) { struct long_ad out; out.extLength = cpu_to_le32(in.extLength); out.extLocation = cpu_to_lelb(in.extLocation); return out; } static inline struct kernel_extent_ad leea_to_cpu(struct extent_ad in) { struct kernel_extent_ad out; out.extLength = le32_to_cpu(in.extLength); out.extLocation = le32_to_cpu(in.extLocation); return out; } #endif /* __UDF_ENDIAN_H */ linux/net-next.git/refs/?h=nds-private-remove&id=55af753cd9fda9c5300f5318253b08bd15fb412e'>refslogtreecommitdiff
30
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorAndrew F. Davis <afd@ti.com>2016-12-01 10:44:16 -0600
committerMark Brown <broonie@kernel.org>2016-12-01 17:42:27 +0000
commitd8ca5bd158f738c4fa6974ee388c381f64db7905 (patch)
tree2657a344b39f62f92943b5070173e25d27d12ab4 /include/dt-bindings
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: tps65086: Fix 25mV ranges for BUCK regulators
The BUCK regulators 3, 4, and 5 also have a 10mV step mode, adjust the tables and logic to reflect the data-sheet for these regulators. fixes: d2a2e729a666 ("regulator: tps65086: Add regulator driver for the TPS65086 PMIC") Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/dt-bindings')