[PATCH v2] Staging: tidspbridge: Use hashtable implementation

2013-12-27 Thread Ivaylo Dimitrov
From: Ivaylo Dimitrov Use upstream hashtable implementation instead of generic code Signed-off-by: Ivaylo Dimitrov --- drivers/staging/tidspbridge/gen/gh.c | 141 +++- drivers/staging/tidspbridge/include/dspbridge/gh.h |6 +- drivers/staging/tidspbridge/pmgr/

[PATCH v2] Staging: tidspbridge: Use hashtable implementation

2014-01-05 Thread Ivaylo Dimitrov
From: Ivaylo Dimitrov Use upstream hashtable implementation instead of generic code Signed-off-by: Ivaylo Dimitrov --- drivers/staging/tidspbridge/gen/gh.c | 148 drivers/staging/tidspbridge/include/dspbridge/gh.h | 12 +- drivers/staging/tidspbridge/pmgr/

Re: [PATCH v2] Staging: tidspbridge: Use hashtable implementation

2014-01-02 Thread Dan Carpenter
> + u32 val_size; > + DECLARE_HASHTABLE(hash_table, GH_HASH_ORDER); > + u32 (*hash)(void *); > + bool (*match)(void *, void *); > + void (*delete)(void *); I forgot to say, put the parameter name in the declaration. + u32 (*hash)(void *key); + bool (*match)(void *k

Re: [PATCH v2] Staging: tidspbridge: Use hashtable implementation

2014-01-05 Thread Dan Carpenter
Looks much nicer. I had a few tiny comments, but those could be addressed in later patches. (There is a lot of work to be done on this driver). On Sun, Jan 05, 2014 at 08:58:12PM +0200, Ivaylo Dimitrov wrote: > -static u16 name_hash(void *key, u16 max_bucket) > +static u32 name_hash(const void *

Re: [PATCH v2] Staging: tidspbridge: Use hashtable implementation

2014-01-05 Thread Ivaylo Dimitrov
On 05.01.2014 21:47, Dan Carpenter wrote: Looks much nicer. I had a few tiny comments, but those could be addressed in later patches. (There is a lot of work to be done on this driver). On Sun, Jan 05, 2014 at 08:58:12PM +0200, Ivaylo Dimitrov wrote: -static u16 name_hash(void *key, u16 max_