i2c: convert to idr_alloc()