diff mbox

pflash_cfi02.c: associate "cfi.pflash02" to "Storage devices" category

Message ID 1417976445-18860-1-git-send-email-antonynpavlov@gmail.com
State New
Headers show

Commit Message

Antony Pavlov Dec. 7, 2014, 6:20 p.m. UTC
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 hw/block/pflash_cfi02.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Tokarev Dec. 10, 2014, 9:11 a.m. UTC | #1
07.12.2014 21:20, Antony Pavlov wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> ---
>  hw/block/pflash_cfi02.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c
> index 8513a17..389b4aa 100644
> --- a/hw/block/pflash_cfi02.c
> +++ b/hw/block/pflash_cfi02.c
> @@ -744,6 +744,7 @@ static void pflash_cfi02_class_init(ObjectClass *klass, void *data)
>  
>      dc->realize = pflash_cfi02_realize;
>      dc->props = pflash_cfi02_properties;
> +    set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
>  }
>  
>  static const TypeInfo pflash_cfi02_info = {

Hm.  While the patch itself is trivial, and it _seems_ it
fixes a bug, I'm not sure of possible effects of this.

What prob it has now, does this device work?  If yes,
why it needs fixing?  Do we care about compatibility
with previous versions, about migration?

Cc'ing block device people...

Thanks,

/mjt
Paolo Bonzini Dec. 10, 2014, 9:52 a.m. UTC | #2
On 10/12/2014 10:11, Michael Tokarev wrote:
> 07.12.2014 21:20, Antony Pavlov wrote:
>> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
>> ---
>>  hw/block/pflash_cfi02.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c
>> index 8513a17..389b4aa 100644
>> --- a/hw/block/pflash_cfi02.c
>> +++ b/hw/block/pflash_cfi02.c
>> @@ -744,6 +744,7 @@ static void pflash_cfi02_class_init(ObjectClass *klass, void *data)
>>  
>>      dc->realize = pflash_cfi02_realize;
>>      dc->props = pflash_cfi02_properties;
>> +    set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
>>  }
>>  
>>  static const TypeInfo pflash_cfi02_info = {
> 
> Hm.  While the patch itself is trivial, and it _seems_ it
> fixes a bug, I'm not sure of possible effects of this.
> 
> What prob it has now, does this device work?  If yes,
> why it needs fixing?  Do we care about compatibility
> with previous versions, about migration?

This affects nothing but help messages.

Paolo
Michael Tokarev Dec. 10, 2014, 11:29 a.m. UTC | #3
Applied to -trivial, thank you!

/mjt
diff mbox

Patch

diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c
index 8513a17..389b4aa 100644
--- a/hw/block/pflash_cfi02.c
+++ b/hw/block/pflash_cfi02.c
@@ -744,6 +744,7 @@  static void pflash_cfi02_class_init(ObjectClass *klass, void *data)
 
     dc->realize = pflash_cfi02_realize;
     dc->props = pflash_cfi02_properties;
+    set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
 }
 
 static const TypeInfo pflash_cfi02_info = {