mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
udf: remove unneeded kernel_timestamp type
remove now unneeded kernel_timestamp type with conversion functions Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
56774805d5
commit
af15a298a4
3 changed files with 5 additions and 39 deletions
|
@ -24,17 +24,6 @@ static inline lb_addr cpu_to_lelb(kernel_lb_addr in)
|
|||
return out;
|
||||
}
|
||||
|
||||
static inline kernel_timestamp lets_to_cpu(timestamp in)
|
||||
{
|
||||
kernel_timestamp out;
|
||||
|
||||
memcpy(&out, &in, sizeof(timestamp));
|
||||
out.typeAndTimezone = le16_to_cpu(in.typeAndTimezone);
|
||||
out.year = le16_to_cpu(in.year);
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
static inline short_ad lesa_to_cpu(short_ad in)
|
||||
{
|
||||
short_ad out;
|
||||
|
@ -85,15 +74,4 @@ static inline kernel_extent_ad leea_to_cpu(extent_ad in)
|
|||
return out;
|
||||
}
|
||||
|
||||
static inline timestamp cpu_to_lets(kernel_timestamp in)
|
||||
{
|
||||
timestamp out;
|
||||
|
||||
memcpy(&out, &in, sizeof(timestamp));
|
||||
out.typeAndTimezone = cpu_to_le16(in.typeAndTimezone);
|
||||
out.year = cpu_to_le16(in.year);
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
#endif /* __UDF_ENDIAN_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue