Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758033AbcJHLAB (ORCPT ); Sat, 8 Oct 2016 07:00:01 -0400 Received: from mga07.intel.com ([134.134.136.100]:17269 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756068AbcJHK7x (ORCPT ); Sat, 8 Oct 2016 06:59:53 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,460,1473145200"; d="scan'208";a="17976131" Date: Sat, 8 Oct 2016 13:56:44 +0300 From: Jarkko Sakkinen To: Peter Huewe Cc: Nayna Jain , Marcel Selhorst , Jason Gunthorpe , "moderated list:TPM DEVICE DRIVER" , open list Subject: Re: [PATCH RESEND 1/3] tpm: define a generic open() method for ascii & bios measurements Message-ID: <20161008105644.GA7351@intel.com> References: <1475349926-476-1-git-send-email-jarkko.sakkinen@linux.intel.com> <1475349926-476-2-git-send-email-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475349926-476-2-git-send-email-jarkko.sakkinen@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 649 Lines: 15 On Sat, Oct 01, 2016 at 10:25:24PM +0300, Jarkko Sakkinen wrote: > From: Nayna Jain > > open() method for event log ascii and binary bios measurements file > operations are very similar. This patch refactors the code into a > single open() call by passing seq_operations as i_node->private data. > > Suggested-by: Jason Gunthorpe > Signed-off-by: Nayna Jain > Reviewed-by: Jarkko Sakkinen > Reviewed-by: Jason Gunthorpe Tested-by: Jarkko Sakkinen /Jarkko