Merge "hal: add device compare util for type and address"