Re: [PATCH 09/20] lightnvm: use generic identify structure

2018-02-22 Thread Matias Bjørling
On 02/22/2018 08:49 AM, Javier González wrote: On 22 Feb 2018, at 08.47, Matias Bjørling wrote: On 02/21/2018 10:26 AM, Javier González wrote: Create a generic identify structure to collect the identify information before knowing the spec. version. This forces different

Re: [PATCH 09/20] lightnvm: use generic identify structure

2018-02-21 Thread Javier González
> On 22 Feb 2018, at 08.47, Matias Bjørling wrote: > > On 02/21/2018 10:26 AM, Javier González wrote: >> Create a generic identify structure to collect the identify information >> before knowing the spec. version. This forces different version paths to >> cast the structure to

Re: [PATCH 09/20] lightnvm: use generic identify structure

2018-02-21 Thread Matias Bjørling
On 02/21/2018 10:26 AM, Javier González wrote: Create a generic identify structure to collect the identify information before knowing the spec. version. This forces different version paths to cast the structure to their spec structure, thus making the code less error prone and more maintainable.