summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pmic
diff options
context:
space:
mode:
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>2016-01-08 15:50:48 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-08 15:00:04 -0800
commit3b9ab374a1e6d3cd6d16231ec6fe11fe2c49a72a (patch)
tree51358634f4bec64354891db97eef6b4ac43ebb72 /drivers/acpi/pmic
parent468623bb835c215028947820c5c36afa409de633 (diff)
downloadblackbird-obmc-linux-3b9ab374a1e6d3cd6d16231ec6fe11fe2c49a72a.tar.gz
blackbird-obmc-linux-3b9ab374a1e6d3cd6d16231ec6fe11fe2c49a72a.zip
ppdev: convert to y2038 safe
The y2038 issue for ppdev is changes of timeval in the ioctl (PPSETTIME and PPGETTIME). The size of struct timeval changes from 8bytes to 16bytes due to the changes of time_t. It lead to the changes of the command of ioctl, e.g. for PPGETTIME, We have: on 32-bit (old): 0x80087095 on 32-bit (new): 0x80107095 on 64-bit : 0x80107095 This patch define these two ioctl commands to support the 32bit and 64bit time_t application at the same time. And, introduce pp_set_timeout to remove some duplicated code. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/acpi/pmic')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud