On 7 February 2013 05:51, Peter Crosthwaite <peter.crosthwa...@xilinx.com> wrote: > Currently, M25P80 uses an object property to differentiate between flash > parts. > Changed this over to use QOM sub-classes - the actual names of the different > parts > are used to create a set of dynamic classes which passes the part info as > class > data. The object no longer needs to search the known_devices table for itself, > instead it just gets its info from its own class. > > Kept the intermediate class definition private to m25p80.c for the moment, as > the expectation is parts will only be added as new entries in the table. We > can > factor out the TYPE_M25P80 abstraction into a header on a demand basis. > > Signed-off-by: Peter Crosthwaite <peter.crosthwa...@xilinx.com>
Thanks; added to arm-devs.next. -- PMM