mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-18 09:34:47 +08:00
shared: Add put_le32()
Add helper to put uint32 values to the given pointer using little-endian representation.
This commit is contained in:
parent
7899d71215
commit
4a2eb105c3
@ -95,3 +95,8 @@ static inline void put_le16(uint16_t val, void *dst)
|
||||
{
|
||||
put_unaligned(cpu_to_le16(val), (uint16_t *) dst);
|
||||
}
|
||||
|
||||
static inline void put_le32(uint32_t val, void *dst)
|
||||
{
|
||||
put_unaligned(cpu_to_le32(val), (uint32_t *) dst);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user