w1: ds2490: use kmemdup rather than duplicating its implementation