[OPW,kernel,3/5] firmware: efi: Use new pstore_info API
diff mbox

Message ID 1414668348-14847-4-git-send-email-somyaanand214@gmail.com
State New, archived
Headers show

Commit Message

Somya Anand Oct. 30, 2014, 11:25 a.m. UTC
'struct pstore_info' now uses 'struct timespec64',so we have to
update .read and .erase functions to use 'struct timespec64' instead
of 'struct timespec'.

Signed-off-by: Somya Anand <somyaanand214@gmail.com>
 drivers/firmware/efi/efi-pstore.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff mbox

diff --git a/drivers/firmware/efi/efi-pstore.c b/drivers/firmware/efi/efi-pstore.c
index 3d10005..28c6625 100644
--- a/drivers/firmware/efi/efi-pstore.c
+++ b/drivers/firmware/efi/efi-pstore.c
@@ -208,13 +208,12 @@  static int efi_pstore_sysfs_entry_iter(void *data, struct efivar_entry **pos)
  *           and pstore will stop reading entry.
 static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type,
-			       int *count, struct timespec *timespec,
+			       int *count, struct timespec64 *ts64,
 			       char **buf, bool *compressed,
 			       struct pstore_info *psi)
 	struct pstore_read_data data;
 	ssize_t size;
-	struct timespec64 *ts64 = timespec;
 	data.id = id;
 	data.type = type;
 	data.count = count;
@@ -319,9 +318,8 @@  static int efi_pstore_erase_func(struct efivar_entry *entry, void *data)
 static int efi_pstore_erase(enum pstore_type_id type, u64 id, int count,
-			    struct timespec time, struct pstore_info *psi)
+			    struct timespec64 ts64, struct pstore_info *psi)
-	struct timespec64 ts64 = time;
 	struct pstore_erase_data edata;
 	struct efivar_entry *entry = NULL;
 	char name[DUMP_NAME_LEN];